IMG_lbm.c
changeset 104 e77df0fdb882
parent 103 27f1072602da
child 117 e613cf987897
     1.1 --- a/IMG_lbm.c	Wed Sep 15 15:39:59 2004 +0000
     1.2 +++ b/IMG_lbm.c	Mon Nov 15 23:34:56 2004 +0000
     1.3 @@ -285,7 +285,7 @@
     1.4  		if ( nbrcolorsfinal > (1<<bmhd.planes) ) {
     1.5  			nbrcolorsfinal = (1<<bmhd.planes);
     1.6  		}
     1.7 -		for ( i=nbcolors; i < nbrcolorsfinal; i++ )
     1.8 +		for ( i=nbcolors; i < (Uint32)nbrcolorsfinal; i++ )
     1.9  		{
    1.10  			Image->format->palette->colors[i].r = Image->format->palette->colors[i%nbcolors].r;
    1.11  			Image->format->palette->colors[i].g = Image->format->palette->colors[i%nbcolors].g;