From a5d382348e5e993baf1877643ea6b4f0b09d5345 Mon Sep 17 00:00:00 2001 From: Max Kellermann <max@musicpd.org> Date: Thu, 21 Jan 2021 16:33:10 +0100 Subject: [PATCH] command/Request: ParseUnsigned() returns unsigned Of course, it should do that! --- src/command/Request.hxx | 4 ++-- 1 file 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); }