Parcourir la source

Fix internal error by using same code to set checkoverflow variable as in powerpc/nppcadd unit

git-svn-id: trunk@42581 -
pierre il y a 6 ans
Parent
commit
5a3883b1ab
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      compiler/powerpc64/nppcadd.pas

+ 1 - 1
compiler/powerpc64/nppcadd.pas

@@ -219,7 +219,7 @@ begin
   else
     location_reset(location, LOC_FLAGS, OS_NO);
 
-  checkoverflow:=needoverflowcheck;
+  checkoverflow:= (nodetype in [addn,subn,muln]) and needoverflowcheck;
 
   load_left_right(cmpop, checkoverflow);