Browse Source

* forgotten commit of r3566

git-svn-id: trunk@3569 -
florian 19 years ago
parent
commit
f27fa0d24f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/cgobj.pas

+ 2 - 2
compiler/cgobj.pas

@@ -958,7 +958,7 @@ implementation
               { division by 1 returns result }
               if a = 1 then
                 op:=OP_NONE
-              else if ispowerof2(int64(a), powerval) then
+              else if ispowerof2(int64(a), powerval) and not(cs_check_overflow in aktlocalswitches) then
                 begin
                   a := powerval;
                   op:= OP_SHR;
@@ -976,7 +976,7 @@ implementation
                else
                  if a=0 then
                    op:=OP_MOVE
-               else if ispowerof2(int64(a), powerval) then
+               else if ispowerof2(int64(a), powerval) and not(cs_check_overflow in aktlocalswitches)  then
                  begin
                    a := powerval;
                    op:= OP_SHL;