[Scummvm-cvs-logs] SF.net SVN: scummvm:[38339] scummvm/trunk/common/hashmap.h
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Mon Feb 16 02:58:20 CET 2009
Revision: 38339
http://scummvm.svn.sourceforge.net/scummvm/?rev=38339&view=rev
Author: fingolfin
Date: 2009-02-16 01:58:20 +0000 (Mon, 16 Feb 2009)
Log Message:
-----------
More paranoia checks
Modified Paths:
--------------
scummvm/trunk/common/hashmap.h
Modified: scummvm/trunk/common/hashmap.h
===================================================================
--- scummvm/trunk/common/hashmap.h 2009-02-16 01:04:19 UTC (rev 38338)
+++ scummvm/trunk/common/hashmap.h 2009-02-16 01:58:20 UTC (rev 38339)
@@ -431,6 +431,7 @@
if (_storage[ctr] == NULL) {
_storage[ctr] = allocNode(key);
+ assert(_storage[ctr] != NULL);
_size++;
// Keep the load factor below a certain threshold.
@@ -439,6 +440,7 @@
capacity = capacity < 500 ? (capacity * 4) : (capacity * 2);
expandStorage(capacity);
ctr = lookup(key);
+ assert(_storage[ctr] != NULL);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list