src/stdlib/SDL_string.c
changeset 5427 d9b4fd6fcdc4
parent 5325 b9c224e16859
child 5512 56ab281d7d3e
--- a/src/stdlib/SDL_string.c	Sun Mar 06 21:17:09 2011 -0800
+++ b/src/stdlib/SDL_string.c	Sun Mar 06 21:17:44 2011 -0800
@@ -865,8 +865,8 @@
         ++str2;
         --maxlen;
     }
-    a = SDL_tolower(*str1);
-    b = SDL_tolower(*str2);
+    a = SDL_tolower((unsigned char) *str1);
+    b = SDL_tolower((unsigned char) *str2);
     return (int) ((unsigned char) a - (unsigned char) b);
 }
 #endif