Commit a5d38234 authored by Max Kellermann's avatar Max Kellermann

command/Request: ParseUnsigned() returns unsigned

Of course, it should do that!
parent 74396448
...@@ -54,12 +54,12 @@ public: ...@@ -54,12 +54,12 @@ public:
return ParseCommandArgInt(data[idx], min_value, max_value); return ParseCommandArgInt(data[idx], min_value, max_value);
} }
int ParseUnsigned(unsigned idx) const { unsigned ParseUnsigned(unsigned idx) const {
assert(idx < size); assert(idx < size);
return ParseCommandArgUnsigned(data[idx]); return ParseCommandArgUnsigned(data[idx]);
} }
int ParseUnsigned(unsigned idx, unsigned max_value) const { unsigned ParseUnsigned(unsigned idx, unsigned max_value) const {
assert(idx < size); assert(idx < size);
return ParseCommandArgUnsigned(data[idx], max_value); return ParseCommandArgUnsigned(data[idx], max_value);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment