summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2021-01-21 16:33:10 +0100
committerMax Kellermann <max@musicpd.org>2021-01-21 16:33:17 +0100
commita5d382348e5e993baf1877643ea6b4f0b09d5345 (patch)
tree917982c3dd3573d0463ad2c9250b6ba415a88489 /src
parent74396448dfd7d975b77e6bff36680757ee56ddb2 (diff)
command/Request: ParseUnsigned() returns unsigned
Of course, it should do that!
Diffstat (limited to 'src')
-rw-r--r--src/command/Request.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command/Request.hxx b/src/command/Request.hxx
index f6f0072a0..7a459bb0f 100644
--- a/src/command/Request.hxx
+++ b/src/command/Request.hxx
@@ -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);
}