diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-11-23 17:29:03 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2022-11-23 17:29:03 -0300 |
commit | ec61be9a7e828bfa366a35658b90f53b1ce39478 (patch) | |
tree | 58ca7e26ac48fcbf26136efc2c72e30980f87e40 /lstate.c | |
parent | f356d5acdd9d8e8f7e9d1d7632c4657f945ff4f4 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 | */ |
89 | void luaE_setdebt (global_State *g, l_mem debt) { | 89 | void 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' */ |