summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2016-04-04 09:44:12 +0000
committerAlexander Lantsev <aunsane@gmail.com>2016-04-04 09:44:12 +0000
commit32089106fa10eba08e946693cb2939a4ab293f77 (patch)
tree102d714e16eb4d5c8da2a6a34d497ad10724c35f /plugins/ExternalAPI
parente1110157f8c2989a58aa12ddeef91669525d188f (diff)
MirLua:
- no need to copy pointer data in MT - project cleanup - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@16584 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r--plugins/ExternalAPI/m_lua.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/ExternalAPI/m_lua.h b/plugins/ExternalAPI/m_lua.h
index 6bf0ccc051..acc333a4ef 100644
--- a/plugins/ExternalAPI/m_lua.h
+++ b/plugins/ExternalAPI/m_lua.h
@@ -10,7 +10,7 @@ static __inline WPARAM luaM_towparam(lua_State *L, int idx)
case LUA_TBOOLEAN:
return lua_toboolean(L, idx);
case LUA_TNUMBER:
- return lua_tonumber(L, idx);
+ return (WPARAM)lua_tonumber(L, idx);
case LUA_TSTRING:
return (WPARAM)lua_tostring(L, idx);
break;
@@ -29,7 +29,7 @@ static __inline LPARAM luaM_tolparam(lua_State *L, int idx)
case LUA_TBOOLEAN:
return lua_toboolean(L, idx);
case LUA_TNUMBER:
- return lua_tonumber(L, idx);
+ return (LPARAM)lua_tonumber(L, idx);
case LUA_TSTRING:
return (LPARAM)lua_tostring(L, idx);
case LUA_TUSERDATA: