Explorar o código

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

git-svn-id: trunk@42581 -
pierre %!s(int64=6) %!d(string=hai) anos
pai
achega
5a3883b1ab
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);