summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-12-26 10:19:19 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-12-26 10:19:19 -0800
commit08a890e4aae307d874bd617f4dc742a56f2064a2 (patch)
treeaa5152066057bc3916dd25d0960fa755471628ff /src/flash
parentf9d203d1e6656041affc09528ac373a2b32497ee (diff)
downloadopenocd+libswd-08a890e4aae307d874bd617f4dc742a56f2064a2.tar.gz
openocd+libswd-08a890e4aae307d874bd617f4dc742a56f2064a2.tar.bz2
openocd+libswd-08a890e4aae307d874bd617f4dc742a56f2064a2.tar.xz
openocd+libswd-08a890e4aae307d874bd617f4dc742a56f2064a2.zip
cygwin 1.7 build fixes
It's less accepting of signed char ... insisting that e.g. tolower() not receive one as a parameter. It's probably good to phase out such usage, given the number of bugs that lurk in the vicinity (assumptions that char is unsigned), so fix these even though such usage is actually legal. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/flash')
-rw-r--r--src/flash/mflash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flash/mflash.c b/src/flash/mflash.c
index 123d61ce..5c8ca8c1 100644
--- a/src/flash/mflash.c
+++ b/src/flash/mflash.c
@@ -1345,7 +1345,8 @@ COMMAND_HANDLER(mg_bank_cmd)
char *str;
mflash_bank->rst_pin.num = strtoul(CMD_ARGV[2], &str, 0);
if (*str)
- mflash_bank->rst_pin.port[0] = (uint16_t)tolower(str[0]);
+ mflash_bank->rst_pin.port[0] = (uint16_t)
+ tolower((unsigned)str[0]);
mflash_bank->target = target;