command/Request: ParseUnsigned() returns unsigned
Of course, it should do that!
This commit is contained in:
parent
74396448df
commit
a5d382348e
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user