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__archive__
parent
151c31785a
commit
31496c2bed
|
@ -952,7 +952,7 @@ COMMAND_HANDLER(ublast_handle_pin_command)
|
||||||
|
|
||||||
if (strlen(pin_value) > 1)
|
if (strlen(pin_value) > 1)
|
||||||
val = '?';
|
val = '?';
|
||||||
switch (tolower(val)) {
|
switch (tolower((unsigned char)val)) {
|
||||||
case '0':
|
case '0':
|
||||||
*steer = FIXED_0;
|
*steer = FIXED_0;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue