fix VC7 warnings
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user