aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lstate.c3
-rw-r--r--lstate.h5
2 files changed, 5 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index 8a672eb8..b88f49a4 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.44 2008/02/19 18:55:09 roberto Exp roberto $ 2** $Id: lstate.c,v 2.45 2008/06/26 19:42:45 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*/
@@ -56,6 +56,7 @@ static void stack_init (lua_State *L1, lua_State *L) {
56 setnilvalue(L1->top++); /* `function' entry for this `ci' */ 56 setnilvalue(L1->top++); /* `function' entry for this `ci' */
57 L1->base = L1->ci->base = L1->top; 57 L1->base = L1->ci->base = L1->top;
58 L1->ci->top = L1->top + LUA_MINSTACK; 58 L1->ci->top = L1->top + LUA_MINSTACK;
59 L1->ci->status = 0;
59} 60}
60 61
61 62
diff --git a/lstate.h b/lstate.h
index dec27d24..b34bb163 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.33 2008/06/23 16:51:08 roberto Exp roberto $ 2** $Id: lstate.h,v 2.34 2008/06/26 19:42:45 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*/
@@ -81,7 +81,8 @@ typedef struct CallInfo {
81 StkId func; /* function index in the stack */ 81 StkId func; /* function index in the stack */
82 StkId top; /* top for this function */ 82 StkId top; /* top for this function */
83 const Instruction *savedpc; 83 const Instruction *savedpc;
84 int nresults; /* expected number of results from this function */ 84 short nresults; /* expected number of results from this function */
85 lu_byte status;
85 int tailcalls; /* number of tail calls lost under this entry */ 86 int tailcalls; /* number of tail calls lost under this entry */
86} CallInfo; 87} CallInfo;
87 88