(svn r23193) -Codechange: don't cast away const unneededly

This commit is contained in:
rubidium
2011-11-12 08:10:22 +00:00
parent a8d33a4d89
commit bd64bf6372
6 changed files with 29 additions and 29 deletions

View File

@@ -75,7 +75,7 @@ static uint16 ParseCode(const char *start, const char *end)
if (end - start == 1) {
if (*start >= 'a' && *start <= 'z') return *start - ('a'-'A');
/* Ignore invalid keycodes */
if (*(uint8*)start < 128) return *start;
if (*(const uint8 *)start < 128) return *start;
}
return 0;
}