diff options
author | George Hazan <ghazan@miranda.im> | 2019-11-06 21:04:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-11-06 21:04:23 +0300 |
commit | 7f5b2d67d2ea99cbc986f58e57f609fae1aee1f7 (patch) | |
tree | 2ad0a3d9c119087918b59e4c80b6d0edbf8afe17 /plugins/MirLua/src/environment.cpp | |
parent | 6a1b112fc8813e6d86b4bac52bfb5ea32a39d806 (diff) |
MirLua: since we use 64-bit integers, no need to push wparam/lparam as pointers
Diffstat (limited to 'plugins/MirLua/src/environment.cpp')
-rw-r--r-- | plugins/MirLua/src/environment.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/environment.cpp b/plugins/MirLua/src/environment.cpp index 24dea9ec58..e0b3ed5344 100644 --- a/plugins/MirLua/src/environment.cpp +++ b/plugins/MirLua/src/environment.cpp @@ -58,12 +58,12 @@ static int HookEventEnvParam(void *obj, WPARAM wParam, LPARAM lParam, LPARAM par lua_rawgeti(env->L, LUA_REGISTRYINDEX, ref); if (wParam) - lua_pushlightuserdata(env->L, (void*)wParam); + lua_pushinteger(env->L, wParam); else lua_pushnil(env->L); if (lParam) - lua_pushlightuserdata(env->L, (void*)lParam); + lua_pushinteger(env->L, lParam); else lua_pushnil(env->L); @@ -98,8 +98,8 @@ static INT_PTR CreateServiceFunctionEnvParam(void *obj, WPARAM wParam, LPARAM lP int ref = param; lua_rawgeti(env->L, LUA_REGISTRYINDEX, ref); - lua_pushlightuserdata(env->L, (void*)wParam); - lua_pushlightuserdata(env->L, (void*)lParam); + lua_pushinteger(env->L, wParam); + lua_pushinteger(env->L, lParam); luaM_pcall(env->L, 2, 1); INT_PTR res = lua_tointeger(env->L, 1); |