aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lgc.c b/lgc.c
index 6c33df95..d77b1a47 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.159 2002/11/18 11:01:55 roberto Exp roberto $ 2** $Id: lgc.c,v 1.160 2002/11/21 14:17:15 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -237,6 +237,7 @@ static void traversestack (GCState *st, lua_State *L1) {
237 lim = L1->top; 237 lim = L1->top;
238 for (ci = L1->base_ci; ci <= L1->ci; ci++) { 238 for (ci = L1->base_ci; ci <= L1->ci; ci++) {
239 lua_assert(ci->top <= L1->stack_last); 239 lua_assert(ci->top <= L1->stack_last);
240 lua_assert(ci->state & (CI_C | CI_HASFRAME | CI_SAVEDPC));
240 if (!(ci->state & CI_C) && lim < ci->top) 241 if (!(ci->state & CI_C) && lim < ci->top)
241 lim = ci->top; 242 lim = ci->top;
242 } 243 }