More warning fixes
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 11 Jan 2018 17:19:42 +0000 (18:19 +0100)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 11 Jan 2018 17:19:42 +0000 (18:19 +0100)
src/hb-open-type-private.hh

index 6d8bc6cb89cdf201660afab2e21cda2fe8442ddb..736497d9bc05e76d49a93fd9efb69c02b0d084c1 100644 (file)
@@ -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)