* insert typeconv to ptrint for all inc(pointer) operations

git-svn-id: trunk@144 -
This commit is contained in:
peter 2005-05-29 19:17:31 +00:00
parent 5007b18a23
commit f67de71de2

View File

@ -2171,11 +2171,12 @@ implementation
CGMessage(parser_e_illegal_expression); CGMessage(parser_e_illegal_expression);
end end
else else
begin
{ no, create constant 1 } { no, create constant 1 }
if (tcallparanode(left).left.resulttype.def.deftype <> pointerdef) then hpp := cordconstnode.create(1,tcallparanode(left).left.resulttype,false);
hpp := cordconstnode.create(1,tcallparanode(left).left.resulttype,false) end;
else if (tcallparanode(left).left.resulttype.def.deftype=pointerdef) then
hpp := cordconstnode.create(1,ptrinttype,false); inserttypeconv_internal(hpp,ptrinttype);
{ make sure we don't call functions part of the left node twice (and generally } { make sure we don't call functions part of the left node twice (and generally }
{ optimize the code generation) } { optimize the code generation) }
if node_complexity(tcallparanode(left).left) > 1 then if node_complexity(tcallparanode(left).left) > 1 then