aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2014-04-09 15:08:30 +0100
committerPaul Fertser <fercerpav@gmail.com>2014-04-14 18:19:56 +0000
commit31496c2bedd367ea4282328da42c997c85d67c2e (patch)
tree1ef8c6b1ede9d6ea49bfd102e47395df7cb295ad
parent151c31785a61a25ca06d48691c0dfd5a487f8721 (diff)
usb_blaster: fix warning: array subscript has type ‘char’
caught by clang 3.4 running on cygwin. Change-Id: I59f652337334e557fb50374f5270ba9c30392b6e Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/2100 Reviewed-by: Jörg Wunsch <openocd@uriah.heep.sax.de> Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Tested-by: jenkins
-rw-r--r--src/jtag/drivers/usb_blaster/usb_blaster.c2
1 files changed, 1 insertions, 1 deletions
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;