build: Fix build failure with CI in FreeBSD

Co-authored-by: James McCoy <jamessan@jamessan.com>
This commit is contained in:
erw7 2020-07-17 14:04:06 +09:00
parent a02a267f8a
commit bfda389c5a

View File

@ -1405,7 +1405,9 @@ char_u *nlua_register_table_as_callable(typval_T *const arg)
lua_State *const lstate = nlua_enter();
#ifndef NDEBUG
int top = lua_gettop(lstate);
#endif
nlua_pushref(lstate, table_ref);
if (!lua_getmetatable(lstate, -1)) {