diff --git a/src/entry.c b/src/entry.c index 15ce9b5..e9e258b 100644 --- a/src/entry.c +++ b/src/entry.c @@ -563,7 +563,9 @@ get_range(bitstr_t * bits, int low, int high, const char *names[], return (EOF); case R_STEP: - if (get_number(&num3, 0, PPC_NULL, file) != EOF) { + unget_char(ch, file); + if (get_number(&num3, 0, PPC_NULL, file) != EOF + && num3 != 0) { state = R_TERMS; break; }