Fixed: GCC warnings

--HG--
branch : develop
This commit is contained in:
kervala 2015-12-26 14:10:27 +01:00
parent af0eabbdea
commit ba6f66d310

View file

@ -214,12 +214,13 @@ uint8 CBitmap::readGIF( NLMISC::IStream &f )
dstOffset+= dstChannels; dstOffset+= dstChannels;
uint32 index = curFrame->RasterBits[srcOffset]; uint32 index = curFrame->RasterBits[srcOffset];
if (index != transparency)
if ((sint32)index != transparency)
{ {
// make sure color index is not outside colormap // make sure color index is not outside colormap
if (ColorMap) if (ColorMap)
{ {
if (index > ColorMap->ColorCount) if ((sint)index > ColorMap->ColorCount)
{ {
index = 0; index = 0;
} }