Fix for last commit

This commit is contained in:
Mike Pall
2013-11-05 19:45:04 +01:00
parent 7b4d5306c7
commit 8941b1994e
2 changed files with 2 additions and 2 deletions

View File

@@ -690,7 +690,7 @@ int LJ_FASTCALL lj_gc_step(lua_State *L)
if (g->gc.debt < GCSTEPSIZE) {
g->gc.threshold = g->gc.total + GCSTEPSIZE;
g->vmstate = ostate;
return 1;
return -1;
} else {
g->gc.debt -= GCSTEPSIZE;
g->gc.threshold = g->gc.total;