command/Request: ParseUnsigned() returns unsigned

Of course, it should do that!
This commit is contained in:
Max Kellermann 2021-01-21 16:33:10 +01:00
parent 74396448df
commit a5d382348e
1 changed files with 2 additions and 2 deletions

View File

@ -54,12 +54,12 @@ public:
return ParseCommandArgInt(data[idx], min_value, max_value);
}
int ParseUnsigned(unsigned idx) const {
unsigned ParseUnsigned(unsigned idx) const {
assert(idx < size);
return ParseCommandArgUnsigned(data[idx]);
}
int ParseUnsigned(unsigned idx, unsigned max_value) const {
unsigned ParseUnsigned(unsigned idx, unsigned max_value) const {
assert(idx < size);
return ParseCommandArgUnsigned(data[idx], max_value);
}