|
@@ -890,18 +890,14 @@ implementation
|
|
|
begin
|
|
|
{ string constant (which can be part of array constructor)
|
|
|
to zero terminated string constant }
|
|
|
- if (((fromtreetype = arrayconstructorn) and
|
|
|
- { can't use is_chararray, because returns false for }
|
|
|
- { array constructors }
|
|
|
- is_char(tarraydef(def_from).elementdef)) or
|
|
|
- (fromtreetype = stringconstn)) and
|
|
|
+ if (fromtreetype = stringconstn) and
|
|
|
(is_pchar(def_to) or is_pwidechar(def_to)) then
|
|
|
begin
|
|
|
doconv:=tc_cstring_2_pchar;
|
|
|
eq:=te_convert_l2;
|
|
|
end
|
|
|
else
|
|
|
- if cdo_explicit in cdoptions then
|
|
|
+ if (cdo_explicit in cdoptions) or (fromtreetype = arrayconstructorn) then
|
|
|
begin
|
|
|
{ pchar(ansistring) }
|
|
|
if is_pchar(def_to) and
|