Unignore and fix warnings in Library/

This commit is contained in:
Birunthan Mohanathas
2013-12-23 19:42:31 +00:00
parent b25a7849d6
commit a577608835
16 changed files with 34 additions and 29 deletions

View File

@ -125,7 +125,7 @@ static int GetStringValue(lua_State* L)
AUTOSCALE autoScale = (top > 1) ? (AUTOSCALE)(int)lua_tonumber(L, 2) : AUTOSCALE_OFF;
double scale = (top > 2) ? lua_tonumber(L, 3) : 1.0;
int decimals = (int)lua_tonumber(L, 4);
bool percentual = lua_toboolean(L, 5);
bool percentual = lua_toboolean(L, 5) != 0;
const WCHAR* val = self->GetStringOrFormattedValue(autoScale, scale, decimals, percentual);
LuaManager::PushWide(val);

View File

@ -68,7 +68,7 @@ static int GetH(lua_State* L)
static int GetX(lua_State* L)
{
DECLARE_SELF(L)
bool abs = (bool)lua_toboolean(L, 2);
const bool abs = lua_toboolean(L, 2) != 0;
lua_pushnumber(L, self->GetX(abs));
return 1;
@ -77,7 +77,7 @@ static int GetX(lua_State* L)
static int GetY(lua_State* L)
{
DECLARE_SELF(L)
bool abs = (bool)lua_toboolean(L, 2);
const bool abs = lua_toboolean(L, 2) != 0;
lua_pushnumber(L, self->GetY(abs));
return 1;