Fourth try... sighs

This commit is contained in:
Behdad Esfahbod 2019-12-06 04:37:11 +00:00
parent 9168310bb4
commit ed35dea8c0
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ hb_bsearch_impl (V** out,
#pragma GCC diagnostic ignored "-Wcast-align" #pragma GCC diagnostic ignored "-Wcast-align"
V* p = (V*) (((const char *) base) + (mid * stride)); V* p = (V*) (((const char *) base) + (mid * stride));
#pragma GCC diagnostic pop #pragma GCC diagnostic pop
int c = compar ((const void *) &key, (const void *) p, ds...); int c = compar ((const void *) hb_addressof (key), (const void *) p, ds...);
if (c < 0) if (c < 0)
max = mid - 1; max = mid - 1;
else if (c > 0) else if (c > 0)