mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
HAL_ChibiOS: fixed build warning
This commit is contained in:
parent
86d43061e9
commit
b90c0d78f3
@ -256,7 +256,7 @@ vsscanf (const char *buf, const char *s, va_list ap)
|
|||||||
else if (*s == 'l' || *s == 'L')
|
else if (*s == 'l' || *s == 'L')
|
||||||
lflag = 1;
|
lflag = 1;
|
||||||
else if (*s >= '1' && *s <= '9') {
|
else if (*s >= '1' && *s <= '9') {
|
||||||
for (tc = s; isdigit (*s); s++);
|
for (tc = s; isdigit ((unsigned)(*s)); s++);
|
||||||
strncpy (tmp, tc, s - tc);
|
strncpy (tmp, tc, s - tc);
|
||||||
tmp[s - tc] = '\0';
|
tmp[s - tc] = '\0';
|
||||||
atob (&width, tmp, 10);
|
atob (&width, tmp, 10);
|
||||||
|
Loading…
Reference in New Issue
Block a user