From e1332304ef90de9c537d3f351ba5850b226c5816 Mon Sep 17 00:00:00 2001 From: nickysn Date: Wed, 1 Jan 2014 23:57:42 +0000 Subject: [PATCH] * 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 - --- compiler/ninl.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/ninl.pas b/compiler/ninl.pas index 16977baa62..e0d54afac6 100644 --- a/compiler/ninl.pas +++ b/compiler/ninl.pas @@ -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;