aboutsummaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-11-14 16:47:49 +0000
committerMike Buland <eichlan@xagasoft.com>2007-11-14 16:47:49 +0000
commitbbfd6917a2df29845118d3b514f58722a22b2eca (patch)
tree239617982d769da249cb6b93abb44121bfe893a4 /src/hash.h
parentc38c6ebe9778244e17544de9067ff35f4ed43906 (diff)
downloadlibbu++-bbfd6917a2df29845118d3b514f58722a22b2eca.tar.gz
libbu++-bbfd6917a2df29845118d3b514f58722a22b2eca.tar.bz2
libbu++-bbfd6917a2df29845118d3b514f58722a22b2eca.tar.xz
libbu++-bbfd6917a2df29845118d3b514f58722a22b2eca.zip
Fixed a bug in Bu::Hash::clear(), it wasn't actually changing the number of
deleted items, so the size was being misreported immediately after a clear.
Diffstat (limited to 'src/hash.h')
-rw-r--r--src/hash.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hash.h b/src/hash.h
index 1b53001..5cf54c2 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -409,8 +409,7 @@ namespace Bu
409 if( isFilled( j ) ) 409 if( isFilled( j ) )
410 if( !isDeleted( j ) ) 410 if( !isDeleted( j ) )
411 { 411 {
412 va.destroy( &aValues[j] ); 412 _erase( j );
413 ka.destroy( &aKeys[j] );
414 onDelete(); 413 onDelete();
415 } 414 }
416 } 415 }