From ec5ed59eb3747f28efaef4290fdcd4ff9a5cee98 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sat, 14 Jan 2006 23:51:27 +0000 Subject: [PATCH] Fix warnings. --- stepmania/src/LuaManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/LuaManager.cpp b/stepmania/src/LuaManager.cpp index 2d25428ec1..061b84301c 100644 --- a/stepmania/src/LuaManager.cpp +++ b/stepmania/src/LuaManager.cpp @@ -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) ); }