Browse Source

Don't skip the last case-insensitive variant of each prefix.

master
samr7 12 years ago
parent
commit
69a380c29c
  1. 2
      pattern.c

2
pattern.c

@ -1189,7 +1189,7 @@ prefix_case_iter_next(prefix_case_iter_t *cip) @@ -1189,7 +1189,7 @@ prefix_case_iter_next(prefix_case_iter_t *cip)
nbits = cip->ci_nbits;
max = (1UL << nbits) - 1;
val = cip->ci_value + 1;
if (val >= max)
if (val > max)
return 0;
for (i = 0, mask = 1; i < nbits; i++, mask <<= 1) {

Loading…
Cancel
Save