Behave as documented when reading fields saying "X/Y" where X != *
rather than mis-parsing them as "X". MFC after: 1 day
This commit is contained in:
parent
bec0c98eae
commit
cf2603700e
@ -507,7 +507,9 @@ get_range(bits, low, high, names, ch, file)
|
|||||||
if (EOF == (ch = get_number(&num1, low, names, ch, file)))
|
if (EOF == (ch = get_number(&num1, low, names, ch, file)))
|
||||||
return EOF;
|
return EOF;
|
||||||
|
|
||||||
if (ch != '-') {
|
if (ch == '/')
|
||||||
|
num2 = high;
|
||||||
|
else if (ch != '-') {
|
||||||
/* not a range, it's a single number.
|
/* not a range, it's a single number.
|
||||||
*/
|
*/
|
||||||
if (EOF == set_element(bits, low, high, num1))
|
if (EOF == set_element(bits, low, high, num1))
|
||||||
|
Loading…
Reference in New Issue
Block a user