version 1.15, 2005/02/05 22:59:23
|
version 1.16, 2005/05/13 12:17:32
|
|
|
Uint32 hashCode, | Uint32 hashCode, |
const void* key) const | const void* key) const |
{ | { |
|
#ifdef PEGASUS_OS_VMS |
|
// |
|
// This is to prevent a crash when the hash |
|
// code hasn't been initialized! |
|
// |
|
if (_numChains == 0) |
|
{ |
|
return 0; |
|
} |
|
#endif |
Uint32 i = hashCode % _numChains; | Uint32 i = hashCode % _numChains; |
| |
for (_BucketBase* bucket = _chains[i]; bucket; bucket = bucket->next) | for (_BucketBase* bucket = _chains[i]; bucket; bucket = bucket->next) |