8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03:03 +01:00

Totally misc.

This commit is contained in:
robocop 2010-01-20 08:25:37 +00:00
parent 6418990840
commit 14b9cbab5a

View File

@ -153,7 +153,8 @@ public:
bool find(const Key& item, size_t& pos) const
{
size_t highBound = this->count, lowBound = 0;
while (highBound > lowBound) {
while (highBound > lowBound)
{
const size_t temp = (highBound + lowBound) >> 1;
if (Cmp::greaterThan(item, KeyOfValue::generate(this, this->data[temp])))
lowBound = temp + 1;