Please GCC?

This commit is contained in:
Matt Woodrow
2009-07-24 12:43:13 +12:00
parent 3e36382b58
commit 33bed487ac
+2 -2
View File
@@ -795,7 +795,7 @@ cell_t CHalfLife2::IndexToReference(int entIndex)
int CHalfLife2::ReferenceToIndex(cell_t entRef)
{
if (entRef == INVALID_EHANDLE_INDEX)
if ((unsigned)entRef == INVALID_EHANDLE_INDEX)
{
return INVALID_EHANDLE_INDEX;
}
@@ -841,7 +841,7 @@ cell_t CHalfLife2::EntityToBCompatRef(CBaseEntity *pEntity)
cell_t CHalfLife2::ReferenceToBCompatRef(cell_t entRef)
{
if (entRef == INVALID_EHANDLE_INDEX)
if ((unsigned)entRef == INVALID_EHANDLE_INDEX)
{
return INVALID_EHANDLE_INDEX;
}