[Scummvm-cvs-logs] SF.net SVN: scummvm: [30818] scummvm/trunk/common/hashmap.h
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Thu Feb 7 22:28:51 CET 2008
Revision: 30818
http://scummvm.svn.sourceforge.net/scummvm/?rev=30818&view=rev
Author: lordhoto
Date: 2008-02-07 13:28:51 -0800 (Thu, 07 Feb 2008)
Log Message:
-----------
Fix bug preventing compilation in iterator code.
Modified Paths:
--------------
scummvm/trunk/common/hashmap.h
Modified: scummvm/trunk/common/hashmap.h
===================================================================
--- scummvm/trunk/common/hashmap.h 2008-02-07 15:53:26 UTC (rev 30817)
+++ scummvm/trunk/common/hashmap.h 2008-02-07 21:28:51 UTC (rev 30818)
@@ -140,7 +140,7 @@
Node *deref() const {
assert(_hashmap != 0);
- assert(_idx < _arrsize);
+ assert(_idx < _hashmap->_arrsize);
Node *node = _hashmap->_arr[_idx];
assert(node != 0);
return node;
@@ -197,6 +197,7 @@
const Node *deref() const {
assert(_hashmap != 0);
+ assert(_idx < _hashmap->_arrsize);
const Node *node = _hashmap->_arr[_idx];
assert(node != 0);
return node;
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