diff options
Diffstat (limited to 'src/select/hash.c')
-rw-r--r-- | src/select/hash.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/select/hash.c b/src/select/hash.c index 6c0ab7c..ee91fc2 100644 --- a/src/select/hash.c +++ b/src/select/hash.c @@ -771,12 +771,11 @@ static void _chain_bloom_generate(const css_selector *s, if (s->data.comb == CSS_COMBINATOR_ANCESTOR || s->data.comb == CSS_COMBINATOR_PARENT) { const css_selector_detail *d = &s->combinator->data; - while (d != NULL) { + do { if (d->negate == 0) { _chain_bloom_add_detail(d, bloom); } - d = (d->next != 0) ? d + 1 : NULL; - } + } while ((d++)->next != 0); } s = s->combinator; |