summaryrefslogtreecommitdiff
path: root/src/pathfinder
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-09-03 12:45:45 +0000
committerfrosch <frosch@openttd.org>2011-09-03 12:45:45 +0000
commit5ccd091fd1bdf9a92b2424bba2dd63b372df0639 (patch)
tree88e87ee24d5ee0cb11b5783b1378dbaee75f9caa /src/pathfinder
parent275a394bc1a83898e31ea2c30b19b1a9a37c2bc5 (diff)
downloadopenttd-5ccd091fd1bdf9a92b2424bba2dd63b372df0639.tar.xz
(svn r22881) -Fix (r22875): GCC warnings on 64bit systems.
Diffstat (limited to 'src/pathfinder')
-rw-r--r--src/pathfinder/npf/queue.cpp2
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;