summaryrefslogtreecommitdiff
path: root/plugins/MirLua/include/mirlua.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-03-19 21:37:26 +0300
committeraunsane <aunsane@gmail.com>2018-03-19 21:37:48 +0300
commit165d7791631a9c9ed0998c90b696116593ebfd70 (patch)
tree8d42ce79b67eb1797e6242e096e1919e508ac0c1 /plugins/MirLua/include/mirlua.h
parent81781c336c74447c4d64b367b958b2c7835f7271 (diff)
MirLua:
- new functions toansi & toucs2 - warning fixes
Diffstat (limited to 'plugins/MirLua/include/mirlua.h')
-rw-r--r--plugins/MirLua/include/mirlua.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/include/mirlua.h b/plugins/MirLua/include/mirlua.h
index 6cf96011ff..07421a482e 100644
--- a/plugins/MirLua/include/mirlua.h
+++ b/plugins/MirLua/include/mirlua.h
@@ -18,7 +18,7 @@ __forceinline UINT_PTR luaM_tomparam(lua_State *L, int idx)
lua_Integer res = 0;
lua_Number num = lua_tonumber(L, idx);
if (lua_numbertointeger(num, &res))
- return res;
+ return (UINT_PTR)res;
}
}
return NULL;