Mercurial > projects > ldc
changeset 966:e7dd879caae5
Reduce size of integer constant make x86-64 asm parsing code compile on x86-32.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 16 Feb 2009 18:27:33 +0100 |
parents | d7dead5f20f0 |
children | 926c1d06c7ec |
files | gen/asm-x86-64.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/asm-x86-64.h Sun Feb 15 23:09:53 2009 -0700 +++ b/gen/asm-x86-64.h Mon Feb 16 18:27:33 2009 +0100 @@ -1712,7 +1712,7 @@ operand->dataSize = Byte_Ptr; else if ( operand->constDisplacement < 0x10000 ) operand->dataSize = Short_Ptr; - else if ( operand->constDisplacement < 0x100000000 ) + else if ( operand->constDisplacement <= 0xFFFFFFFF ) operand->dataSize = Int_Ptr; else //This could be possible since we are using 48 bits