diff --git a/src/hb-algs.hh b/src/hb-algs.hh index b00015e08..ce17bd44d 100644 --- a/src/hb-algs.hh +++ b/src/hb-algs.hh @@ -655,7 +655,7 @@ hb_bsearch_impl (V** out, #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...); + int c = compar ((const void *) hb_addressof (key), (const void *) p, ds...); if (c < 0) max = mid - 1; else if (c > 0)