mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-12 20:24:47 +00:00
Fixed: GCC warnings
This commit is contained in:
parent
04ecf93a79
commit
b3bf7d41ca
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue