From 90bf3de2d66a6605fad7f6a050fae6d277d15f56 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 28 May 2008 18:32:05 +0000 Subject: Decrement _nele when erasing an element from hashmap, and add a test-case for this bug. svn-id: r32343 --- common/hashmap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/hashmap.h b/common/hashmap.h index 81a4b0d17e..1bae44e98e 100644 --- a/common/hashmap.h +++ b/common/hashmap.h @@ -535,6 +535,7 @@ void HashMap::erase(const Key &key) { } } _arr[i] = NULL; + _nele--; return; } -- cgit v1.2.3