Skip to content
Snippets Groups Projects
Commit f73d947c authored by Florian Pose's avatar Florian Pose
Browse files

Assume increasing ranges if second number is omitted.

parent 79873de3
No related branches found
No related tags found
No related merge requests found
...@@ -109,7 +109,8 @@ NumberListParser::List NumberListParser::parse(const char *data) ...@@ -109,7 +109,8 @@ NumberListParser::List NumberListParser::parse(const char *data)
case Range: case Range:
if (i >= size) { if (i >= size) {
int max = maximum(); int max = maximum();
if (max >= 0) { // only increasing ranges if second number omitted
if (max >= 0 && firstNum <= (unsigned int) max) {
List r = range(firstNum, max); List r = range(firstNum, max);
ret.splice(ret.end(), r); ret.splice(ret.end(), r);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment