From 5ccd091fd1bdf9a92b2424bba2dd63b372df0639 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 3 Sep 2011 12:45:45 +0000 Subject: (svn r22881) -Fix (r22875): GCC warnings on 64bit systems. --- src/pathfinder/npf/queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pathfinder') 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; -- cgit v1.2.3-70-g09d2