isspace() parameter must be an integer, else a 'char' gets
used as an array index (sigh).
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
goto parse_char;
default:
parse_char:
- if (!in_bracket && isspace(str[pos]))
+ if (!in_bracket && isspace((int) str[pos]))
{
space_found = 1;
str[pos] = '\0';
/* consume optional leading '0' MSBs or whitespace */
while (str_len > 0 && ((str[str_len - 1] == '0')
- || isspace(str[str_len - 1])))
+ || isspace((int) str[str_len - 1])))
str_len--;
/* check validity: we must have consumed everything */