src/video/SDL_bmp.c
changeset 2918 bd518fc76f28
parent 2859 99210400e8b9
child 2920 cdb01906cb7e
     1.1 --- a/src/video/SDL_bmp.c	Thu Dec 25 04:56:44 2008 +0000
     1.2 +++ b/src/video/SDL_bmp.c	Thu Dec 25 05:11:29 2008 +0000
     1.3 @@ -218,7 +218,7 @@
     1.4          if (biClrUsed == 0) {
     1.5              biClrUsed = 1 << biBitCount;
     1.6          }
     1.7 -        if (biClrUsed > palette->ncolors) {
     1.8 +        if ((int)biClrUsed > palette->ncolors) {
     1.9              palette->ncolors = biClrUsed;
    1.10              palette->colors =
    1.11                  (SDL_Color *) SDL_realloc(palette->colors,
    1.12 @@ -229,7 +229,7 @@
    1.13                  was_error = 1;
    1.14                  goto done;
    1.15              }
    1.16 -        } else if (biClrUsed < palette->ncolors) {
    1.17 +        } else if ((int)biClrUsed < palette->ncolors) {
    1.18              palette->ncolors = biClrUsed;
    1.19          }
    1.20          if (biSize == 12) {