diff options
author | 2009-06-25 08:04:39 +0000 | |
---|---|---|
committer | 2009-06-25 08:04:39 +0000 | |
commit | e692918b34b127e3be7ef00fd470c90ff8adb3ca (patch) | |
tree | 392424f5045e66e50a96a5f7e4b217da870dcf69 /src/emu/inputseq.c | |
parent | f7ce2a786aaa4ac5e9f82daa4b78ee89ca5ef46c (diff) |
Added casts to ensure proper values are passed to the ctype.h functions.
[Juergen Buchmueller]
Diffstat (limited to 'src/emu/inputseq.c')
-rw-r--r-- | src/emu/inputseq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/inputseq.c b/src/emu/inputseq.c index e2f481bfaa2..ea3a3b5829c 100644 --- a/src/emu/inputseq.c +++ b/src/emu/inputseq.c @@ -527,7 +527,7 @@ int input_seq_from_tokens(const char *string, input_seq *seq) char *strtemp; /* trim any leading spaces */ - while (*str != 0 && isspace(*str)) + while (*str != 0 && isspace((UINT8)*str)) str++; /* bail if we're done */ @@ -538,8 +538,8 @@ int input_seq_from_tokens(const char *string, input_seq *seq) } /* find the end of the token and make it upper-case along the way */ - for (strtemp = str; *strtemp != 0 && !isspace(*strtemp); strtemp++) - *strtemp = toupper(*strtemp); + for (strtemp = str; *strtemp != 0 && !isspace((UINT8)*strtemp); strtemp++) + *strtemp = toupper((UINT8)*strtemp); origspace = *strtemp; *strtemp = 0; |