Skip to content

Commit 9ffb668

Browse files
BernardXiongmysterywolf
authored andcommitted
[components] fix dtb compiling warning.
1 parent be8b381 commit 9ffb668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/drivers/fdt/src/dtb_base.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ static const char *_parse_integer_fixup_radix(const char *s, unsigned int *base)
1414
{
1515
if (s[0] == '0')
1616
{
17-
if (tolower(s[1]) == 'x' && isxdigit(s[2]))
17+
if (tolower(s[1]) == 'x' && isxdigit((int)s[2]))
1818
*base = 16;
1919
else
2020
*base = 8;
@@ -35,7 +35,7 @@ unsigned long simple_strtoul(const char *cp, char **endp,
3535

3636
cp = _parse_integer_fixup_radix(cp, &base);
3737

38-
while (isxdigit(*cp) && (value = isdigit(*cp) ? *cp-'0' : (islower(*cp)
38+
while (isxdigit((int)*cp) && (value = isdigit((int)*cp) ? *cp-'0' : (islower((int)*cp)
3939
? toupper(*cp) : *cp)-'A'+10) < base)
4040
{
4141
result = result*base + value;

0 commit comments

Comments
 (0)