From b90c0d78f3e3ebcda5b0a478bd466756c5913576 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Feb 2018 14:56:55 +1100 Subject: [PATCH] HAL_ChibiOS: fixed build warning --- libraries/AP_HAL_ChibiOS/hwdef/common/stdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.c b/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.c index ce15a2b571..65528353a6 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.c +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/stdio.c @@ -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);