diff options
| -rw-r--r-- | ltests.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltests.c,v 2.191 2014/10/30 18:53:28 roberto Exp roberto $ | 2 | ** $Id: ltests.c,v 2.192 2014/11/02 19:19:04 roberto Exp roberto $ |
| 3 | ** Internal Module for Debugging of the Lua Implementation | 3 | ** Internal Module for Debugging of the Lua Implementation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -307,9 +307,9 @@ static void checkstack (global_State *g, lua_State *L1) { | |||
| 307 | lua_assert(ci->top <= L1->stack_last); | 307 | lua_assert(ci->top <= L1->stack_last); |
| 308 | lua_assert(lua_checkpc(L1, ci)); | 308 | lua_assert(lua_checkpc(L1, ci)); |
| 309 | } | 309 | } |
| 310 | if (L1->stack) { | 310 | if (L1->stack) { /* complete thread? */ |
| 311 | for (o = L1->stack; o < L1->top; o++) | 311 | for (o = L1->stack; o < L1->stack_last + EXTRA_STACK; o++) |
| 312 | checkliveness(g, o); | 312 | checkliveness(g, o); /* entire stack must have valid values */ |
| 313 | } | 313 | } |
| 314 | else lua_assert(L1->stacksize == 0); | 314 | else lua_assert(L1->stacksize == 0); |
| 315 | } | 315 | } |
