[set] Respect stride

Ouch!
This commit is contained in:
Behdad Esfahbod 2018-02-07 18:07:45 -06:00
parent 577becaf7b
commit 34ac3548b7
1 changed files with 2 additions and 2 deletions

View File

@ -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));