* stringconst+pchar returns a string

git-svn-id: trunk@1283 -
This commit is contained in:
peter 2005-10-04 11:45:26 +00:00
parent 24a2153187
commit 2a6623a97f

View File

@ -1089,12 +1089,13 @@ implementation
else if (
(rd.deftype=pointerdef) and (ld.deftype=pointerdef)
) or
{ compare/add pchar to char arrays by addresses like BP/Delphi }
{ compare/add pchar to variable (not stringconst) char arrays
by addresses like BP/Delphi }
(
(nodetype in [equaln,unequaln,subn,addn]) and
(
((is_pchar(ld) or (lt=niln)) and is_chararray(rd)) or
((is_pchar(rd) or (rt=niln)) and is_chararray(ld))
((is_pchar(ld) or (lt=niln)) and is_chararray(rd) and (rt<>stringconstn)) or
((is_pchar(rd) or (rt=niln)) and is_chararray(ld) and (lt<>stringconstn))
)
) then
begin