diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-09-26 09:10:29 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-09-26 09:10:29 +0000 |
commit | 1a93511936a87715115f968a94841ca3b502c858 (patch) | |
tree | fc90a4601e275709663992d990edfc61699e14f6 /src/hash.h | |
parent | 8ba5471111da19b10ea38bf3ef00ee9a31cceec3 (diff) | |
download | libbu++-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 'src/hash.h')
-rw-r--r-- | src/hash.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | { |