fix isdigit taking unsigned as input

gcc complains because our char might or might not be signed depending on
arch and phase of the moon:
error: array subscript has type 'char' [-Werror=charsubscripts]

Change-Id: I7c76f9a2318c4f0e5eedeea00ec380824b86567e
This commit is contained in:
Eric Wild 2021-11-19 12:58:39 +01:00 committed by Hoernchen
parent 3a22173892
commit 79f2903788
1 changed files with 1 additions and 1 deletions

View File

@ -1250,7 +1250,7 @@ int osmo_float_str_to_int(int64_t *val, const char *str, unsigned int precision)
if (point)
return -EINVAL;
point = p;
} else if (!isdigit(*p))
} else if (!isdigit((unsigned char)*p))
return -EINVAL;
}