summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-09-06 21:51:39 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-09-06 21:51:39 +0000
commit095f6923fd3dde6ed78ce00c042996aa5c1560a8 (patch)
treec875a31423da212b35882773c99ffe78cfd4137e /src/tools
parente1d09145520439f5cd8281513906b01e7629e831 (diff)
unidasm.c needs some type casts.
Juergen
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/unidasm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tools/unidasm.c b/src/tools/unidasm.c
index e24638f5408..b65378c143b 100644
--- a/src/tools/unidasm.c
+++ b/src/tools/unidasm.c
@@ -346,15 +346,15 @@ int parse_options(int argc, char *argv[], options *opts)
if (pending_base || pending_arch)
goto usage;
- if (tolower(curarg[1]) == 'a')
+ if (tolower((UINT8)curarg[1]) == 'a')
pending_arch = TRUE;
- else if (tolower(curarg[1]) == 'b')
+ else if (tolower((UINT8)curarg[1]) == 'b')
pending_base = TRUE;
- else if (tolower(curarg[1]) == 'l')
+ else if (tolower((UINT8)curarg[1]) == 'l')
opts->lower = TRUE;
- else if (tolower(curarg[1]) == 'n')
+ else if (tolower((UINT8)curarg[1]) == 'n')
opts->norawbytes = TRUE;
- else if (tolower(curarg[1]) == 'u')
+ else if (tolower((UINT8)curarg[1]) == 'u')
opts->upper = TRUE;
else
goto usage;
@@ -499,11 +499,11 @@ int main(int argc, char *argv[])
if (opts.lower)
{
for (p = buffer; *p != 0; p++)
- *p = tolower(*p);
+ *p = tolower((UINT8)*p);
} else if (opts.upper)
{
for (p = buffer; *p != 0; p++)
- *p = toupper(*p);
+ *p = toupper((UINT8)*p);
}
printf("%s\n", buffer);