ucm: main - fix the compilation error (signess)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-20 09:22:33 +02:00
parent c087bc1e44
commit 87034d6fc6

View 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;
}