提交 34ac3548 编写于 作者: B Behdad Esfahbod

[set] Respect stride

Ouch!
上级 577becaf
...@@ -273,7 +273,7 @@ struct hb_set_t ...@@ -273,7 +273,7 @@ struct hb_set_t
{ {
page->add (g); page->add (g);
array++; array = (const T *) ((const char *) array + stride);
count--; count--;
} }
while (count && (g = *array, start <= g && g < end)); while (count && (g = *array, start <= g && g < end));
...@@ -302,7 +302,7 @@ struct hb_set_t ...@@ -302,7 +302,7 @@ struct hb_set_t
last_g = g; last_g = g;
page->add (g); page->add (g);
array++; array = (const T *) ((const char *) array + stride);
count--; count--;
} }
while (count && (g = *array, g < end)); while (count && (g = *array, g < end));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册