More warning fixes
This commit is contained in:
parent
680cbc2eb3
commit
9b82aa19d8
|
@ -1041,12 +1041,12 @@ struct SortedArrayOf : ArrayOf<Type, LenType>
|
|||
inline int bsearch (const SearchType &x) const
|
||||
{
|
||||
/* Hand-coded bsearch here since this is in the hot inner loop. */
|
||||
const Type *array = this->array;
|
||||
const Type *arr = this->array;
|
||||
int min = 0, max = (int) this->len - 1;
|
||||
while (min <= max)
|
||||
{
|
||||
int mid = (min + max) / 2;
|
||||
int c = array[mid].cmp (x);
|
||||
int c = arr[mid].cmp (x);
|
||||
if (c < 0)
|
||||
max = mid - 1;
|
||||
else if (c > 0)
|
||||
|
|
Loading…
Reference in New Issue