Fix Win64 type issue

db4
unknown 2008-11-17 18:44:06 -06:00
parent 93c8f5a2f4
commit ddd28c7d12
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ void primitive_fixnum_shift(void)
} }
else if(y < WORD_SIZE - TAG_BITS) else if(y < WORD_SIZE - TAG_BITS)
{ {
F_FIXNUM mask = -(1L << (WORD_SIZE - 1 - TAG_BITS - y)); F_FIXNUM mask = -((F_FIXNUM)1 << (WORD_SIZE - 1 - TAG_BITS - y));
if((x > 0 && (x & mask) == 0) || (x & mask) == mask) if((x > 0 && (x & mask) == 0) || (x & mask) == mask)
{ {
dpush(tag_fixnum(x << y)); dpush(tag_fixnum(x << y));