From e692918b34b127e3be7ef00fd470c90ff8adb3ca Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Thu, 25 Jun 2009 08:04:39 +0000 Subject: Added casts to ensure proper values are passed to the ctype.h functions. [Juergen Buchmueller] --- src/emu/debug/debugcpu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/emu/debug/debugcpu.c') diff --git a/src/emu/debug/debugcpu.c b/src/emu/debug/debugcpu.c index 911b9bbe72b..d1cfd348e55 100644 --- a/src/emu/debug/debugcpu.c +++ b/src/emu/debug/debugcpu.c @@ -235,8 +235,8 @@ void debug_cpu_init(running_machine *machine) /* strip all spaces from the name and convert to lowercase */ for (charnum = 0; charnum < sizeof(symname) - 1 && str < colon; str++) - if (!isspace(*str)) - symname[charnum++] = tolower(*str); + if (!isspace((UINT8)*str)) + symname[charnum++] = tolower((UINT8)*str); symname[charnum] = 0; /* add the symbol to the table */ @@ -2133,7 +2133,7 @@ static void process_source_file(running_machine *machine) /* strip whitespace */ i = (int)strlen(buf); - while((i > 0) && (isspace(buf[i-1]))) + while((i > 0) && (isspace((UINT8)buf[i-1]))) buf[--i] = '\0'; /* execute the command */ -- cgit v1.2.3