First try at fixing build errors
This commit is contained in:
parent
2274270c6a
commit
14ce5ab0b7
|
@ -651,7 +651,10 @@ hb_bsearch_impl (V** out,
|
||||||
while (min <= max)
|
while (min <= max)
|
||||||
{
|
{
|
||||||
int mid = ((unsigned int) min + (unsigned int) max) / 2;
|
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));
|
V* p = (V*) (((const char *) base) + (mid * stride));
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
int c = compar ((const void *) &key, (const void *) p, ds...);
|
int c = compar ((const void *) &key, (const void *) p, ds...);
|
||||||
if (c < 0)
|
if (c < 0)
|
||||||
max = mid - 1;
|
max = mid - 1;
|
||||||
|
|
Loading…
Reference in New Issue