aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-11-23 17:29:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2022-11-23 17:29:03 -0300
commitec61be9a7e828bfa366a35658b90f53b1ce39478 (patch)
tree58ca7e26ac48fcbf26136efc2c72e30980f87e40 /lstate.c
parentf356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4 (diff)
downloadlua-ec61be9a7e828bfa366a35658b90f53b1ce39478.tar.gz
lua-ec61be9a7e828bfa366a35658b90f53b1ce39478.tar.bz2
lua-ec61be9a7e828bfa366a35658b90f53b1ce39478.zip
'l_mem' renamed to 'l_obj' to count objects
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 2 insertions, 2 deletions
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) {
86** set GCdebt to a new value keeping the value (totalobjs + GCdebt) 86** set GCdebt to a new value keeping the value (totalobjs + GCdebt)
87** invariant (and avoiding underflows in 'totalobjs') 87** invariant (and avoiding underflows in 'totalobjs')
88*/ 88*/
89void luaE_setdebt (global_State *g, l_mem debt) { 89void luaE_setdebt (global_State *g, l_obj debt) {
90 l_mem tb = gettotalobjs(g); 90 l_obj tb = gettotalobjs(g);
91 lua_assert(tb > 0); 91 lua_assert(tb > 0);
92 if (debt < tb - MAX_LMEM) 92 if (debt < tb - MAX_LMEM)
93 debt = tb - MAX_LMEM; /* will make 'totalobjs == MAX_LMEM' */ 93 debt = tb - MAX_LMEM; /* will make 'totalobjs == MAX_LMEM' */