Merge branch 'master' of git://factorcode.org/git/factor

db4
Joe Groff 2009-05-08 13:24:07 -07:00
commit 28af73eb24
3 changed files with 6 additions and 6 deletions

View File

@ -28,11 +28,6 @@ inline static cell align8(cell a)
return align(a,8); return align(a,8);
} }
inline static cell align_page(cell a)
{
return align(a,getpagesize());
}
#define WORD_SIZE (signed)(sizeof(cell)*8) #define WORD_SIZE (signed)(sizeof(cell)*8)
#define TAG_MASK 7 #define TAG_MASK 7

View File

@ -461,7 +461,7 @@ VM_C_API s64 to_signed_8(cell obj)
VM_C_API void box_unsigned_8(u64 n) VM_C_API void box_unsigned_8(u64 n)
{ {
if(n > fixnum_max) if(n > (u64)fixnum_max)
dpush(tag<bignum>(ulong_long_to_bignum(n))); dpush(tag<bignum>(ulong_long_to_bignum(n)));
else else
dpush(tag_fixnum(n)); dpush(tag_fixnum(n));

View File

@ -7,4 +7,9 @@ struct segment {
cell end; cell end;
}; };
inline static cell align_page(cell a)
{
return align(a,getpagesize());
}
} }