Fix a bug: if a new string was greater than all current ones in atomizer vector,
was misplaced one place upper. Doh! git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5841 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f742072808
commit
7b009410dd
@ -302,7 +302,7 @@ atomize(const void * at, const char *string, int create) {
|
||||
if (test < 0)
|
||||
high = index;
|
||||
else if (test > 0)
|
||||
low = index + 1;
|
||||
low = ++index; // if we exit the while loop here, use index + 1
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user