]> git.alsa-project.org Git - alsa-lib.git/commitdiff
ucm: main - fix the compilation error (signess)
authorJaroslav Kysela <perex@perex.cz>
Fri, 20 May 2022 07:22:33 +0000 (09:22 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 20 May 2022 07:23:17 +0000 (09:23 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/main.c

index 8afc72d08628b9218cdd1f066103d64327b0797d..65cdeaa88a197ab2b74637d47cbf317118dc5171 100644 (file)
@@ -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;
        }