diff options
-rw-r--r-- | lstate.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.82 2010/04/19 17:40:13 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.83 2010/04/29 17:35:10 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | 27 | ||
28 | #if !defined(LUAI_GCPAUSE) | 28 | #if !defined(LUAI_GCPAUSE) |
29 | #define LUAI_GCPAUSE 162 /* 162% */ | 29 | #define LUAI_GCPAUSE 200 /* 200% */ |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #if !defined(LUAI_GCMUL) | 32 | #if !defined(LUAI_GCMUL) |
@@ -110,10 +110,10 @@ static void stack_init (lua_State *L1, lua_State *L) { | |||
110 | 110 | ||
111 | 111 | ||
112 | static void freestack (lua_State *L) { | 112 | static void freestack (lua_State *L) { |
113 | if (L->ci != NULL) { /* is there a 'ci' list? */ | 113 | if (L->stack == NULL) |
114 | L->ci = &L->base_ci; /* free the entire list */ | 114 | return; /* stack not completely built yet */ |
115 | luaE_freeCI(L); | 115 | L->ci = &L->base_ci; /* free the entire 'ci' list */ |
116 | } | 116 | luaE_freeCI(L); |
117 | luaM_freearray(L, L->stack, L->stacksize); /* free stack array */ | 117 | luaM_freearray(L, L->stack, L->stacksize); /* free stack array */ |
118 | } | 118 | } |
119 | 119 | ||