[fix] new string tree iterator, don't decrement permutations on rollovers

This commit is contained in:
Al
2017-01-01 13:34:08 -05:00
parent 1780c5e053
commit 7d6c85aeec

View File

@@ -1091,7 +1091,6 @@ void string_tree_iterator_next(string_tree_iterator_t *self) {
self->path[i]++;
if (self->path[i] == string_tree_num_alternatives(self->tree, i)) {
self->path[i] = 0;
self->remaining--;
} else {
self->remaining--;
break;