mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:40:38 +01:00
Assertion added
This commit is contained in:
parent
18cef45ff1
commit
d0f2c3a623
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user