HAL_ChibiOS: fixed build warning

This commit is contained in:
Andrew Tridgell 2018-02-08 14:56:55 +11:00
parent 86d43061e9
commit b90c0d78f3
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ vsscanf (const char *buf, const char *s, va_list ap)
else if (*s == 'l' || *s == 'L')
lflag = 1;
else if (*s >= '1' && *s <= '9') {
for (tc = s; isdigit (*s); s++);
for (tc = s; isdigit ((unsigned)(*s)); s++);
strncpy (tmp, tc, s - tc);
tmp[s - tc] = '\0';
atob (&width, tmp, 10);