Fixed compiler warning

This commit is contained in:
Sam Lantinga 2011-03-06 21:17:44 -08:00
parent 924f55eebe
commit ac662b8421

View file

@ -865,8 +865,8 @@ SDL_strncasecmp(const char *str1, const char *str2, size_t maxlen)
++str2; ++str2;
--maxlen; --maxlen;
} }
a = SDL_tolower(*str1); a = SDL_tolower((unsigned char) *str1);
b = SDL_tolower(*str2); b = SDL_tolower((unsigned char) *str2);
return (int) ((unsigned char) a - (unsigned char) b); return (int) ((unsigned char) a - (unsigned char) b);
} }
#endif #endif