Fixed some compiler warnings that Visual Studio reported.
This commit is contained in:
parent
8328f33947
commit
30b6bedb57
5 changed files with 6 additions and 6 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue