Forráskód Böngészése

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

Ozkan Sezer 3 éve
szülő
commit
47d3e96b43
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/joystick/SDL_joystick.c

+ 1 - 1
src/joystick/SDL_joystick.c

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