From: Jaroslav Kysela Date: Fri, 20 May 2022 07:22:33 +0000 (+0200) Subject: ucm: main - fix the compilation error (signess) X-Git-Tag: v1.2.7~16 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=87034d6fc607528a9df5e1793d159e2f6904ebd8;p=alsa-lib.git ucm: main - fix the compilation error (signess) Signed-off-by: Jaroslav Kysela --- diff --git a/src/ucm/main.c b/src/ucm/main.c index 8afc72d0..65cdeaa8 100644 --- a/src/ucm/main.c +++ b/src/ucm/main.c @@ -307,7 +307,7 @@ static const char *parse_uint(const char *p, const char *prefix, size_t len, uc_error("unable to parse '%s'", prefix); return NULL; } - if (v < min || v > max) { + if ((unsigned int)v < min || (unsigned int)v > max) { uc_error("value '%s' out of range %u-%u %(%ld)", min, max, v); return NULL; }