fix VC7 warnings

This commit is contained in:
Chris Danford
2005-02-23 01:11:02 +00:00
parent dfce58ed98
commit af4a407ffe
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -119,7 +119,7 @@ bool LuaManager::PopStack( bool &out, lua_State *L )
if( L == NULL ) if( L == NULL )
L = LUA->L; L = LUA->L;
out = lua_toboolean( L, -1 ); out = !!lua_toboolean( L, -1 );
lua_pop( L, 1 ); lua_pop( L, 1 );
return true; return true;
} }
@@ -129,7 +129,7 @@ bool LuaManager::PopStack( float &val, lua_State *L )
if( L == NULL ) if( L == NULL )
L = LUA->L; L = LUA->L;
val = lua_tonumber( L, -1 ); val = (float)lua_tonumber( L, -1 );
lua_pop( L, 1 ); lua_pop( L, 1 );
return true; return true;
} }
+3
View File
@@ -838,8 +838,11 @@ public:
lua_pushnil( L ); lua_pushnil( L );
} }
else else
{
pPref->PushValue( L ); pPref->PushValue( L );
} }
return 1;
}
static int SetPreference( T* p, lua_State *L ) static int SetPreference( T* p, lua_State *L )
{ {
CString sName = SArg(1); CString sName = SArg(1);