Skip to content

Commit 209954a

Browse files
committed
get_range() move parsing code before separator check
In the previous commit the parsing fix was added after a separator check by accident, making it not execute properly. This commit moves it into the right place.
1 parent 9635677 commit 209954a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/entry.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,13 +638,13 @@ get_range(bitstr_t * bits, int low, int high, const char *names[],
638638
state = R_STEP;
639639
break;
640640
}
641+
if (low_ > high_ && high_ == 0) {
642+
high_ = 7;
643+
}
641644
if (is_separator(ch)) {
642645
state = R_FINISH;
643646
break;
644647
}
645-
if (low_ > high_ && high_ == 0) {
646-
high_ = 7;
647-
}
648648
return (EOF);
649649

650650
case R_RANDOM:

0 commit comments

Comments
 (0)