Просмотр исходного кода

make SDL_strcasecmp standard compliant

pionere 4 лет назад
Родитель
Сommit
aec58d8208
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/stdlib/SDL_string.c

+ 2 - 2
src/stdlib/SDL_string.c

@@ -1118,8 +1118,8 @@ SDL_strcasecmp(const char *str1, const char *str2)
         ++str1;
         ++str2;
     }
-    a = SDL_toupper(*str1);
-    b = SDL_toupper(*str2);
+    a = SDL_toupper((unsigned char) *str1);
+    b = SDL_toupper((unsigned char) *str2);
     return (int) ((unsigned char) a - (unsigned char) b);
 #endif /* HAVE_STRCASECMP */
 }