From 8af91a420df85e25f2b80c489154cb3df448e2e4 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 7 Dec 2013 14:34:48 +0000 Subject: Slight simplification to selector detail itterator. --- src/select/hash.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3