summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/jedutil.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2009-06-25 08:04:39 +0000
committer Aaron Giles <aaron@aarongiles.com>2009-06-25 08:04:39 +0000
commite692918b34b127e3be7ef00fd470c90ff8adb3ca (patch)
tree392424f5045e66e50a96a5f7e4b217da870dcf69 /src/tools/jedutil.c
parentf7ce2a786aaa4ac5e9f82daa4b78ee89ca5ef46c (diff)
Added casts to ensure proper values are passed to the ctype.h functions.
[Juergen Buchmueller]
Diffstat (limited to 'src/tools/jedutil.c')
-rw-r--r--src/tools/jedutil.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tools/jedutil.c b/src/tools/jedutil.c
index 409dc55114c..7baf2d42933 100644
--- a/src/tools/jedutil.c
+++ b/src/tools/jedutil.c
@@ -191,16 +191,16 @@ int main(int argc, char *argv[])
/* does the source end in '.jed'? */
len = strlen(srcfile);
src_is_jed = (srcfile[len - 4] == '.' &&
- tolower(srcfile[len - 3]) == 'j' &&
- tolower(srcfile[len - 2]) == 'e' &&
- tolower(srcfile[len - 1]) == 'd');
+ tolower((UINT8)srcfile[len - 3]) == 'j' &&
+ tolower((UINT8)srcfile[len - 2]) == 'e' &&
+ tolower((UINT8)srcfile[len - 1]) == 'd');
/* does the destination end in '.jed'? */
len = strlen(dstfile);
dst_is_jed = (dstfile[len - 4] == '.' &&
- tolower(dstfile[len - 3]) == 'j' &&
- tolower(dstfile[len - 2]) == 'e' &&
- tolower(dstfile[len - 1]) == 'd');
+ tolower((UINT8)dstfile[len - 3]) == 'j' &&
+ tolower((UINT8)dstfile[len - 2]) == 'e' &&
+ tolower((UINT8)dstfile[len - 1]) == 'd');
/* error if neither or both are .jed */
if (!src_is_jed && !dst_is_jed)