diff options
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' */ |