mirror of https://github.com/encounter/SDL.git
SDL_joystick.c: (unsigned char) cast to SDL_tolower() parameters.
This commit is contained in:
parent
881feca1f2
commit
47d3e96b43
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue