mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-17 16:51:44 +08:00
Fixed endless loop if negative master index range ends at zero.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user