SDL_joystick.c: (unsigned char) cast to SDL_tolower() parameters.

This commit is contained in:
Ozkan Sezer 2021-12-18 14:01:02 +03:00
parent 881feca1f2
commit 47d3e96b43
1 changed files with 1 additions and 1 deletions

View File

@ -1713,7 +1713,7 @@ PrefixMatch(const char *a, const char *b)
{ {
int matchlen = 0; int matchlen = 0;
while (*a && *b) { while (*a && *b) {
if (SDL_tolower(*a++) == SDL_tolower(*b++)) { if (SDL_tolower((unsigned char) *a++) == SDL_tolower((unsigned char) *b++)) {
++matchlen; ++matchlen;
} else { } else {
break; break;