8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:40:38 +01:00

Assertion added

This commit is contained in:
alexpeshkoff 2009-09-30 08:51:04 +00:00
parent 18cef45ff1
commit d0f2c3a623

View File

@ -198,7 +198,9 @@ namespace Firebird
Entry** locate(const K& key)
{
return locate(key, F::hash(key, HASHSIZE) % HASHSIZE);
size_t hashValue = F::hash(key, HASHSIZE);
fb_assert(hashValue < HASHSIZE);
return locate(key, hashValue % HASHSIZE);
}
public: