1
0
mirror of https://github.com/GOSTSec/vanitygen synced 2025-02-07 12:24:20 +00:00

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

This commit is contained in:
samr7 2012-08-21 13:54:14 -07:00
parent e10fdd5431
commit 69a380c29c

View File

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