* fixed (harmless) range check errors

git-svn-id: trunk@14908 -
This commit is contained in:
Jonas Maebe 2010-02-13 20:48:59 +00:00
parent efcc6f6440
commit fea789eca4

View File

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