aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lapi.c b/lapi.c
index 4fe845fd..a4a520de 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.33 2005/03/18 18:55:45 roberto Exp roberto $ 2** $Id: lapi.c,v 2.34 2005/03/18 20:11:28 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -909,6 +909,8 @@ LUA_API int lua_gc (lua_State *L, int what, int data) {
909 g->GCthreshold = 0; 909 g->GCthreshold = 0;
910 while (g->GCthreshold <= g->totalbytes) 910 while (g->GCthreshold <= g->totalbytes)
911 luaC_step(L); 911 luaC_step(L);
912 if (g->gcstate == GCSpause) /* end of cycle? */
913 res = 1; /* signal it */
912 break; 914 break;
913 } 915 }
914 case LUA_GCSETPACE: { 916 case LUA_GCSETPACE: {