Mercurial > sdl-ios-xcode
diff src/video/SDL_bmp.c @ 2918:bd518fc76f28
Updated to build on Windows
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 25 Dec 2008 05:11:29 +0000 |
parents | 99210400e8b9 |
children | cdb01906cb7e |
line wrap: on
line diff
--- a/src/video/SDL_bmp.c Thu Dec 25 04:56:44 2008 +0000 +++ b/src/video/SDL_bmp.c Thu Dec 25 05:11:29 2008 +0000 @@ -218,7 +218,7 @@ if (biClrUsed == 0) { biClrUsed = 1 << biBitCount; } - if (biClrUsed > palette->ncolors) { + if ((int)biClrUsed > palette->ncolors) { palette->ncolors = biClrUsed; palette->colors = (SDL_Color *) SDL_realloc(palette->colors, @@ -229,7 +229,7 @@ was_error = 1; goto done; } - } else if (biClrUsed < palette->ncolors) { + } else if ((int)biClrUsed < palette->ncolors) { palette->ncolors = biClrUsed; } if (biSize == 12) {