First try at fixing build errors

This commit is contained in:
Behdad Esfahbod 2019-12-06 03:54:46 +00:00
parent 2274270c6a
commit 14ce5ab0b7
1 changed files with 3 additions and 0 deletions

View File

@ -651,7 +651,10 @@ hb_bsearch_impl (V** out,
while (min <= max)
{
int mid = ((unsigned int) min + (unsigned int) max) / 2;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-align"
V* p = (V*) (((const char *) base) + (mid * stride));
#pragma GCC diagnostic pop
int c = compar ((const void *) &key, (const void *) p, ds...);
if (c < 0)
max = mid - 1;