From 34ac3548b7c9dbc57f277cf9a7a337cd1a8a04bb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 7 Feb 2018 18:07:45 -0600 Subject: [PATCH] [set] Respect stride Ouch! --- src/hb-set-private.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-set-private.hh b/src/hb-set-private.hh index 576c169e6..54dd610ed 100644 --- a/src/hb-set-private.hh +++ b/src/hb-set-private.hh @@ -273,7 +273,7 @@ struct hb_set_t { page->add (g); - array++; + array = (const T *) ((const char *) array + stride); count--; } while (count && (g = *array, start <= g && g < end)); @@ -302,7 +302,7 @@ struct hb_set_t last_g = g; page->add (g); - array++; + array = (const T *) ((const char *) array + stride); count--; } while (count && (g = *array, g < end));