Fixed compiler warning
authorSam Lantinga <slouken@libsdl.org>
Sun, 06 Mar 2011 21:17:44 -0800
changeset 5427 d9b4fd6fcdc4
parent 5426 7a3982c50af8
child 5428 cff5d3cd5777
Fixed compiler warning
src/stdlib/SDL_string.c
--- 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