Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #47 from jamessan/luaL_setfuncs
Browse files Browse the repository at this point in the history
Pass correct type for luaL_setfuncs' nup parameter
  • Loading branch information
jamessan authored Nov 1, 2019
2 parents 9904a05 + 3bbddc0 commit c10c0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvim/native.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static const luaL_Reg native_lib_f[] = {
int luaopen_nvim_native(lua_State *L) {
lua_newtable(L);
#if LUA_VERSION_NUM >= 502
luaL_setfuncs(L, native_lib_f, NULL);
luaL_setfuncs(L, native_lib_f, 0);
#else
luaL_register(L, NULL, native_lib_f);
#endif
Expand Down

0 comments on commit c10c0b7

Please sign in to comment.