summaryrefslogtreecommitdiffstats
path: root/ft2232_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft2232_spi.c')
-rw-r--r--ft2232_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ft2232_spi.c b/ft2232_spi.c
index ee2b693..a2ea2a8 100644
--- a/ft2232_spi.c
+++ b/ft2232_spi.c
@@ -148,7 +148,7 @@ int ft2232_spi_init(void)
free(arg);
arg = extract_programmer_param("port");
if (arg) {
- switch (toupper(*arg)) {
+ switch (toupper((unsigned char)*arg)) {
case 'A':
ft2232_interface = INTERFACE_A;
break;
OpenPOWER on IntegriCloud