summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-06-30 13:06:44 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-06-30 13:06:44 +0000
commit53c47e9a7736c6554cfd306d26e337e08548bb1e (patch)
tree6281c920322b03aca904197a65eee6869101521c /plugins
parent911b3eb1016aafe3819c0ab40cfea995d9044b09 (diff)
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@14455 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/MirLua/src/m_genmenu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp
index 7fabed093b..bccf9b835e 100644
--- a/plugins/MirLua/src/m_genmenu.cpp
+++ b/plugins/MirLua/src/m_genmenu.cpp
@@ -107,7 +107,7 @@ static int lua_ModifyMenuItem(lua_State *L)
static int lua_ShowMenuItem(lua_State *L)
{
HGENMENU hMenuItem = (HGENMENU)lua_touserdata(L, 1);
- bool isShow = (HGENMENU)lua_toboolean(L, 2);
+ bool isShow = lua_toboolean(L, 2) != 0;
::Menu_ShowItem(hMenuItem, isShow);
@@ -117,7 +117,7 @@ static int lua_ShowMenuItem(lua_State *L)
static int lua_EnableMenuItem(lua_State *L)
{
HGENMENU hMenuItem = (HGENMENU)lua_touserdata(L, 1);
- bool isEnable = (HGENMENU)lua_toboolean(L, 2);
+ bool isEnable = lua_toboolean(L, 2) != 0;
::Menu_EnableItem(hMenuItem, isEnable);
@@ -127,7 +127,7 @@ static int lua_EnableMenuItem(lua_State *L)
static int lua_CheckMenuItem(lua_State *L)
{
HGENMENU hMenuItem = (HGENMENU)lua_touserdata(L, 1);
- bool isChecked = (HGENMENU)lua_toboolean(L, 2);
+ bool isChecked = lua_toboolean(L, 2) != 0;
::Menu_SetChecked(hMenuItem, isChecked);