Fixed endless loop if negative master index range ends at zero.

This commit is contained in:
Florian Pose 2010-02-25 15:29:33 +01:00
parent 79fb1c5934
commit ffb4e3621d
1 changed files with 2 additions and 2 deletions

View File

@ -219,8 +219,8 @@ NumberListParser::NumberList NumberListParser::range(
ret.push_back(i);
}
} else {
for (; i >= j; i--) {
ret.push_back(i);
for (; j <= i; j++) {
ret.push_front(j);
}
}