diff --git a/src/lib_debug.c b/src/lib_debug.c index f6818bbf..1487f12b 100644 --- a/src/lib_debug.c +++ b/src/lib_debug.c @@ -41,7 +41,9 @@ LJLIB_CF(debug_setmetatable) lj_lib_checktabornil(L, 2); L->top = L->base+2; lua_setmetatable(L, 1); +#if !LJ_52 setboolV(L->top-1, 1); +#endif return 1; }