aboutsummaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-09-26 09:10:29 +0000
committerMike Buland <eichlan@xagasoft.com>2007-09-26 09:10:29 +0000
commit1a93511936a87715115f968a94841ca3b502c858 (patch)
treefc90a4601e275709663992d990edfc61699e14f6 /src/hash.h
parent8ba5471111da19b10ea38bf3ef00ee9a31cceec3 (diff)
downloadlibbu++-1a93511936a87715115f968a94841ca3b502c858.tar.gz
libbu++-1a93511936a87715115f968a94841ca3b502c858.tar.bz2
libbu++-1a93511936a87715115f968a94841ca3b502c858.tar.xz
libbu++-1a93511936a87715115f968a94841ca3b502c858.zip
Fixed a bug that allowed Bu::Hash::get() to rehash, this has been corrected, the
get function can no longer change the Hash in any way.
Diffstat (limited to '')
-rw-r--r--src/hash.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hash.h b/src/hash.h
index 2859758..4f508b2 100644
--- a/src/hash.h
+++ b/src/hash.h
@@ -426,7 +426,7 @@ namespace Bu
426 { 426 {
427 uint32_t hash = __calcHashCode( k ); 427 uint32_t hash = __calcHashCode( k );
428 bool bFill; 428 bool bFill;
429 uint32_t nPos = probe( hash, k, bFill ); 429 uint32_t nPos = probe( hash, k, bFill, false );
430 430
431 if( bFill ) 431 if( bFill )
432 { 432 {
@@ -451,7 +451,7 @@ namespace Bu
451 { 451 {
452 uint32_t hash = __calcHashCode( k ); 452 uint32_t hash = __calcHashCode( k );
453 bool bFill; 453 bool bFill;
454 uint32_t nPos = probe( hash, k, bFill ); 454 uint32_t nPos = probe( hash, k, bFill, false );
455 455
456 if( bFill ) 456 if( bFill )
457 { 457 {