lib/getrange.c: getrange(): Add missing cast

isdigit(3) requires a cast if the argument is of type 'char'.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar 2024-01-07 00:31:01 +01:00 committed by Iker Pedrosa
parent 34f431f607
commit 29f135777e

View File

@ -55,7 +55,7 @@ getrange(const char *range,
if ('\0' == *end)
return 0; /* <long>- */
parse_max:
if (!isdigit(*end))
if (!isdigit((unsigned char) *end))
return -1;
if (a2ul(max, end, NULL, 10, 0, ULONG_MAX) == -1)