From b3bf7d41ca2131fba7542788d5964088c10bfff8 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 26 Dec 2015 14:10:27 +0100 Subject: [PATCH] Fixed: GCC warnings --- code/nel/src/misc/bitmap_gif.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/nel/src/misc/bitmap_gif.cpp b/code/nel/src/misc/bitmap_gif.cpp index 34ece8b60..30e8b652c 100644 --- a/code/nel/src/misc/bitmap_gif.cpp +++ b/code/nel/src/misc/bitmap_gif.cpp @@ -214,12 +214,13 @@ uint8 CBitmap::readGIF( NLMISC::IStream &f ) dstOffset+= dstChannels; uint32 index = curFrame->RasterBits[srcOffset]; - if (index != transparency) + + if ((sint32)index != transparency) { // make sure color index is not outside colormap if (ColorMap) { - if (index > ColorMap->ColorCount) + if ((sint)index > ColorMap->ColorCount) { index = 0; }