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 --- lstate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index 9f615342..01393c41 100644 --- a/lstate.c +++ b/lstate.c @@ -86,8 +86,8 @@ static unsigned int luai_makeseed (lua_State *L) { ** set GCdebt to a new value keeping the value (totalobjs + GCdebt) ** invariant (and avoiding underflows in 'totalobjs') */ -void luaE_setdebt (global_State *g, l_mem debt) { - l_mem tb = gettotalobjs(g); +void luaE_setdebt (global_State *g, l_obj debt) { + l_obj tb = gettotalobjs(g); lua_assert(tb > 0); if (debt < tb - MAX_LMEM) debt = tb - MAX_LMEM; /* will make 'totalobjs == MAX_LMEM' */ -- cgit v1.2.3-55-g6feb