protocol/RangeArg: add static method OpenEnded()

This commit is contained in:
Max Kellermann
2021-02-15 19:55:55 +01:00
parent 103194e32d
commit 6e1940e930
2 changed files with 9 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ ParseCommandArgRange(const char *s)
s);
if (test == test2)
value = std::numeric_limits<int>::max();
return RangeArg::OpenEnded(range.start);
if (value < 0)
throw FormatProtocolError(ACK_ERROR_ARG,