L constants are evil in 64 bits

This commit is contained in:
Vítor Santos Costa
2010-05-11 12:25:49 +01:00
parent c52dda489b
commit be2a3a635e
14 changed files with 37 additions and 31 deletions

View File

@@ -249,10 +249,10 @@ STATIC_PROTO(DBProp find_int_key, (Int));
static UInt new_trail_size(void)
{
UInt sz = (Yap_TrailTop-(ADDR)TR)/2;
if (sz < 64 * 1024L)
return 64 * 1024L;
if (sz > 1024*1024L)
return 1024*1024L;
if (sz < K64)
return K64;
if (sz > M1)
return M1;
return sz;
}