summaryrefslogtreecommitdiff
path: root/src/if_lua.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-02-17 16:28:55 +0100
committerBram Moolenaar <Bram@vim.org>2015-02-17 16:28:55 +0100
commit46538ee46cb04ed47c546d92583d6eb023e51b32 (patch)
tree5809df7542f064c7965727919370493d8d651c11 /src/if_lua.c
parent1e997827f12b38359fe8a4e7b033bbb6465b6668 (diff)
downloadvim-git-46538ee46cb04ed47c546d92583d6eb023e51b32.tar.gz
updated for version 7.4.638v7.4.638
Problem: Can't build with Lua 5.3 on Windows. Solution: use luaL_optinteger() instead of LuaL_optlong(). (Ken Takata)
Diffstat (limited to 'src/if_lua.c')
-rw-r--r--src/if_lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index d926f7346..082d896f9 100644
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -774,7 +774,7 @@ luaV_list_insert (lua_State *L)
{
luaV_List *lis = luaV_checkudata(L, 1, LUAVIM_LIST);
list_T *l = (list_T *) luaV_checkcache(L, (void *) *lis);
- long pos = luaL_optlong(L, 3, 0);
+ long pos = (long) luaL_optinteger(L, 3, 0);
listitem_T *li = NULL;
typval_T v;
if (l->lv_lock)