diff options
Diffstat (limited to 'src/lane.cpp')
-rw-r--r-- | src/lane.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lane.cpp b/src/lane.cpp index d4d409f..29ad8bb 100644 --- a/src/lane.cpp +++ b/src/lane.cpp | |||
@@ -68,7 +68,7 @@ static LUAG_FUNC(set_finalizer) | |||
68 | luaL_argcheck(L_, lua_gettop(L_) == 1, 1, "too many arguments"); | 68 | luaL_argcheck(L_, lua_gettop(L_) == 1, 1, "too many arguments"); |
69 | STACK_GROW(L_, 3); | 69 | STACK_GROW(L_, 3); |
70 | // Get the current finalizer table (if any), create one if it doesn't exist | 70 | // Get the current finalizer table (if any), create one if it doesn't exist |
71 | std::ignore = kFinalizerRegKey.getSubTable(L_, 1, 0); // L_: finalizer {finalisers} | 71 | std::ignore = kFinalizerRegKey.getSubTable(L_, NArr{ 1 }, NRec{ 0 }); // L_: finalizer {finalisers} |
72 | // must cast to int, not lua_Integer, because LuaJIT signature of lua_rawseti is not the same as PUC-Lua. | 72 | // must cast to int, not lua_Integer, because LuaJIT signature of lua_rawseti is not the same as PUC-Lua. |
73 | int const _idx{ static_cast<int>(lua_rawlen(L_, kIdxTop) + 1) }; | 73 | int const _idx{ static_cast<int>(lua_rawlen(L_, kIdxTop) + 1) }; |
74 | lua_pushvalue(L_, 1); // L_: finalizer {finalisers} finalizer | 74 | lua_pushvalue(L_, 1); // L_: finalizer {finalisers} finalizer |