* fix r7009, check also if the other node is integer type

git-svn-id: trunk@7032 -
This commit is contained in:
peter 2007-03-30 06:51:23 +00:00
parent 6804d5bf90
commit bc071f709c

View File

@ -385,7 +385,7 @@ implementation
end;
{ Add,Sub,Mul with constant 0 or 1? }
if is_constintnode(right) then
if is_constintnode(right) and is_integer(left.resultdef) then
begin
if tordconstnode(right).value = 0 then
begin
@ -406,7 +406,7 @@ implementation
if assigned(result) then
exit;
end;
if is_constintnode(left) then
if is_constintnode(left) and is_integer(right.resultdef) then
begin
if tordconstnode(left).value = 0 then
begin