Fix warnings.

This commit is contained in:
Steve Checkoway
2006-01-14 23:51:27 +00:00
parent a1592e71e7
commit ec5ed59eb3
+2 -2
View File
@@ -198,7 +198,7 @@ static int g_iNumStackCounts = 0;
Lua *LuaManager::Get()
{
m_pLock->Lock();
if( g_iNumStackCounts < ARRAYSIZE(g_iStackCounts) )
if( size_t(g_iNumStackCounts) < ARRAYSIZE(g_iStackCounts) )
{
g_iStackCounts[g_iNumStackCounts] = lua_gettop(L);
}
@@ -211,7 +211,7 @@ void LuaManager::Release( Lua *&p )
ASSERT( p == L );
ASSERT( g_iNumStackCounts != 0 );
--g_iNumStackCounts;
if( g_iNumStackCounts < ARRAYSIZE(g_iStackCounts) )
if( size_t(g_iNumStackCounts) < ARRAYSIZE(g_iStackCounts) )
{
ASSERT( g_iStackCounts[g_iNumStackCounts] == lua_gettop(L) );
}