From ec61be9a7e828bfa366a35658b90f53b1ce39478 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 23 Nov 2022 17:29:03 -0300 Subject: 'l_mem' renamed to 'l_obj' to count objects --- lapi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lapi.c') diff --git a/lapi.c b/lapi.c index 3c620d4b..3876956d 100644 --- a/lapi.c +++ b/lapi.c @@ -1163,7 +1163,7 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { } case LUA_GCSTEP: { int data = va_arg(argp, int); - l_mem debt = 1; /* =1 to signal that it did an actual step */ + l_obj debt = 1; /* =1 to signal that it did an actual step */ lu_byte oldstp = g->gcstp; g->gcstp = 0; /* allow GC to run (GCSTPGC must be zero here) */ if (data == 0) { @@ -1217,8 +1217,8 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { if (stepmul != 0) setgcparam(g->gcstepmul, stepmul); if (stepsize != 0) - g->gcstepsize = (stepsize <= log2maxs(l_mem)) ? stepsize - : log2maxs(l_mem); + g->gcstepsize = (stepsize <= log2maxs(l_obj)) ? stepsize + : log2maxs(l_obj); luaC_changemode(L, KGC_INC); break; } -- cgit v1.2.3-55-g6feb