(svn r22881) -Fix (r22875): GCC warnings on 64bit systems.

This commit is contained in:
frosch
2011-09-03 12:45:45 +00:00
parent 275a394bc1
commit 5ccd091fd1
3 changed files with 28 additions and 4 deletions

View File

@@ -235,7 +235,7 @@ void Hash::Init(Hash_HashProc *hash, uint num_buckets)
uint i;
/* Ensure the size won't overflow. */
assert(num_buckets < SIZE_MAX / (sizeof(*this->buckets) + sizeof(*this->buckets_in_use)));
CheckAllocationConstraints(sizeof(*this->buckets) + sizeof(*this->buckets_in_use), num_buckets);
this->hash = hash;
this->size = 0;