From 31496c2bedd367ea4282328da42c997c85d67c2e Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Wed, 9 Apr 2014 15:08:30 +0100 Subject: [PATCH] =?utf8?q?usb=5Fblaster:=20fix=20warning:=20array=20subscr?= =?utf8?q?ipt=20has=20type=20=E2=80=98char=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit caught by clang 3.4 running on cygwin. Change-Id: I59f652337334e557fb50374f5270ba9c30392b6e Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/2100 Reviewed-by: Jörg Wunsch Reviewed-by: Andreas Fritiofson Tested-by: jenkins --- src/jtag/drivers/usb_blaster/usb_blaster.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag/drivers/usb_blaster/usb_blaster.c b/src/jtag/drivers/usb_blaster/usb_blaster.c index 5335ce4e..d64a7ea8 100644 --- a/src/jtag/drivers/usb_blaster/usb_blaster.c +++ b/src/jtag/drivers/usb_blaster/usb_blaster.c @@ -952,7 +952,7 @@ COMMAND_HANDLER(ublast_handle_pin_command) if (strlen(pin_value) > 1) val = '?'; - switch (tolower(val)) { + switch (tolower((unsigned char)val)) { case '0': *steer = FIXED_0; break; -- 2.39.5