Explorar o código

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

Ozkan Sezer %!s(int64=4) %!d(string=hai) anos
pai
achega
47d3e96b43
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
     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;