summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/debugvw.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/emu/debug/debugvw.c
parentf7ce2a786aaa4ac5e9f82daa4b78ee89ca5ef46c (diff)
Added casts to ensure proper values are passed to the ctype.h functions.
[Juergen Buchmueller]
Diffstat (limited to 'src/emu/debug/debugvw.c')
-rw-r--r--src/emu/debug/debugvw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/debug/debugvw.c b/src/emu/debug/debugvw.c
index 765990a985d..fa1dcff71e1 100644
--- a/src/emu/debug/debugvw.c
+++ b/src/emu/debug/debugvw.c
@@ -1147,13 +1147,13 @@ static void registers_view_add_register(debug_view *view, int regnum, const char
}
/* now trim spaces */
- while (isspace(str[tagstart]) && taglen > 0)
+ while (isspace((UINT8)str[tagstart]) && taglen > 0)
tagstart++, taglen--;
- while (isspace(str[tagstart + taglen - 1]) && taglen > 0)
+ while (isspace((UINT8)str[tagstart + taglen - 1]) && taglen > 0)
taglen--;
- while (isspace(str[valstart]) && vallen > 0)
+ while (isspace((UINT8)str[valstart]) && vallen > 0)
valstart++, vallen--;
- while (isspace(str[valstart + vallen - 1]) && vallen > 0)
+ while (isspace((UINT8)str[valstart + vallen - 1]) && vallen > 0)
vallen--;
if (str[valstart] == '!')
valstart++, vallen--;