amd64 fixes
library fixes git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1247 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -313,14 +313,14 @@ static void create_hash_table(DBProp p, Int hint) {
|
||||
if (hint < p->NOfEntries)
|
||||
hint = p->NOfEntries;
|
||||
while (off) {
|
||||
int limit = 1 << (off);
|
||||
Int limit = 1L << (off);
|
||||
if (inp >= limit) {
|
||||
out += off;
|
||||
inp >>= off;
|
||||
}
|
||||
off >>= 1;
|
||||
}
|
||||
if ((size = 1 << out) < hint)
|
||||
if ((size = 1L << out) < hint)
|
||||
hint <<= 1;
|
||||
/* clean up the table */
|
||||
pt = tbl = (hash_db_entry *)AllocDBSpace(hint*sizeof(hash_db_entry));
|
||||
|
Reference in New Issue
Block a user