mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
More silencing of warnings
This commit is contained in:
parent
98516280ad
commit
fa6d5333f7
2 changed files with 5 additions and 5 deletions
|
@ -255,7 +255,7 @@ int filestream_scanf(RFILE *stream, const char* format, ...)
|
|||
*subfmtiter++ = *format++;
|
||||
}
|
||||
|
||||
while (isdigit(*format))
|
||||
while (isdigit((unsigned char)*format))
|
||||
*subfmtiter++ = *format++; /* width */
|
||||
|
||||
/* length */
|
||||
|
@ -311,9 +311,9 @@ int filestream_scanf(RFILE *stream, const char* format, ...)
|
|||
ret++;
|
||||
bufiter += sublen;
|
||||
}
|
||||
else if (isspace(*format))
|
||||
else if (isspace((unsigned char)*format))
|
||||
{
|
||||
while (isspace(*bufiter))
|
||||
while (isspace((unsigned char)*bufiter))
|
||||
bufiter++;
|
||||
format++;
|
||||
}
|
||||
|
|
|
@ -355,7 +355,7 @@ unsigned string_to_unsigned(const char *str)
|
|||
|
||||
for (ptr = str; *ptr != '\0'; ptr++)
|
||||
{
|
||||
if (!isdigit(*ptr))
|
||||
if (!isdigit((unsigned char)*ptr))
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -388,7 +388,7 @@ unsigned string_hex_to_unsigned(const char *str)
|
|||
/* Check for valid characters */
|
||||
for (ptr = hex_str; *ptr != '\0'; ptr++)
|
||||
{
|
||||
if (!isxdigit(*ptr))
|
||||
if (!isxdigit((unsigned char)*ptr))
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue