diff options
author | frosch <frosch@openttd.org> | 2011-09-03 12:45:45 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-09-03 12:45:45 +0000 |
commit | 5ccd091fd1bdf9a92b2424bba2dd63b372df0639 (patch) | |
tree | 88e87ee24d5ee0cb11b5783b1378dbaee75f9caa /src/pathfinder/npf | |
parent | 275a394bc1a83898e31ea2c30b19b1a9a37c2bc5 (diff) | |
download | openttd-5ccd091fd1bdf9a92b2424bba2dd63b372df0639.tar.xz |
(svn r22881) -Fix (r22875): GCC warnings on 64bit systems.
Diffstat (limited to 'src/pathfinder/npf')
-rw-r--r-- | src/pathfinder/npf/queue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/npf/queue.cpp b/src/pathfinder/npf/queue.cpp index b12c59d6c..f964ece24 100644 --- a/src/pathfinder/npf/queue.cpp +++ b/src/pathfinder/npf/queue.cpp @@ -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; |