* when converting Hi() to a shr node, convert the right shr const parameter to

sinttype, instead of u32inttype. This:
  1) is consistent with what type conversion tshlshrnode.pass_typecheck inserts
     on the right side
  2) avoids the expensive conversion to 32-bit and the even more expensive
     performing the operation in 32-bit on i8086

git-svn-id: trunk@26352 -
This commit is contained in:
nickysn 2014-01-01 23:57:42 +00:00
parent d4e01637e7
commit e1332304ef

View File

@ -3277,7 +3277,7 @@ implementation
end;
if shiftconst <> 0 then
result := ctypeconvnode.create_internal(cshlshrnode.create(shrn,left,
cordconstnode.create(shiftconst,u32inttype,false)),resultdef)
cordconstnode.create(shiftconst,sinttype,false)),resultdef)
else
result := ctypeconvnode.create_internal(left,resultdef);
left := nil;