summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/driver.c')
-rw-r--r--src/emu/driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/driver.c b/src/emu/driver.c
index bcd2e7610dd..522c270fef3 100644
--- a/src/emu/driver.c
+++ b/src/emu/driver.c
@@ -205,7 +205,7 @@ static int penalty_compare(const char *source, const char *target)
for ( ; *source && *target; target++)
{
/* do a case insensitive match */
- int match = (tolower(*source) == tolower(*target));
+ int match = (tolower((UINT8)*source) == tolower((UINT8)*target));
/* if we matched, advance the source */
if (match)