Browse Source

* fixed (harmless) range check errors

git-svn-id: trunk@14908 -
Jonas Maebe 15 years ago
parent
commit
fea789eca4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      compiler/ninl.pas

+ 3 - 0
compiler/ninl.pas

@@ -1460,12 +1460,15 @@ implementation
                  else
                  else
                    mask:=qword(1 shl bits)-1;
                    mask:=qword(1 shl bits)-1;
               end;
               end;
+{$push}
+{$r-,q-}
               if shift=0 then
               if shift=0 then
                 result:=cordconstnode.create(vl2.svalue,def,false)
                 result:=cordconstnode.create(vl2.svalue,def,false)
               else if vl2.svalue<0 then
               else if vl2.svalue<0 then
                 result:=cordconstnode.create(((vl2.svalue shr shift) or (mask shl (bits-shift))) and mask,def,false)
                 result:=cordconstnode.create(((vl2.svalue shr shift) or (mask shl (bits-shift))) and mask,def,false)
               else
               else
                 result:=cordconstnode.create((vl2.svalue shr shift) and mask,def,false);
                 result:=cordconstnode.create((vl2.svalue shr shift) and mask,def,false);
+{$pop}
             end
             end
           else
           else
         end;
         end;