Fixed some compiler warnings that Visual Studio reported.

This commit is contained in:
Ryan C. Gordon 2013-07-20 19:51:51 -04:00
parent 8328f33947
commit 30b6bedb57
5 changed files with 6 additions and 6 deletions

View file

@ -178,7 +178,7 @@ SDL_SetColorKey(SDL_Surface * surface, int flag, Uint32 key)
return SDL_InvalidParamError("surface");
}
if (surface->format->palette && key >= surface->format->palette->ncolors) {
if (surface->format->palette && key >= ((Uint32) surface->format->palette->ncolors)) {
return SDL_InvalidParamError("key");
}