mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Unignore and fix warnings in Library/
This commit is contained in:
@ -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);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user