summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-06-01 16:09:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-06-01 16:09:26 -0300
commit9423e22aa35f47b392fc52a1b93c1be4c69f2aee (patch)
tree4d466663bc69a342941ea9830b17014aa76acfb2 /lstate.c
parent57f8414de1968b6f9f212140f2da14cba3b6dacb (diff)
downloadlua-9423e22aa35f47b392fc52a1b93c1be4c69f2aee.tar.gz
lua-9423e22aa35f47b392fc52a1b93c1be4c69f2aee.tar.bz2
lua-9423e22aa35f47b392fc52a1b93c1be4c69f2aee.zip
no more L->base + ci->base only for Lua functions (C functions may use
'func')
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index 77999877..c6ca5b9b 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.53 2009/04/17 22:00:01 roberto Exp roberto $ 2** $Id: lstate.c,v 2.54 2009/04/28 19:04:36 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*/
@@ -86,7 +86,6 @@ static void stack_init (lua_State *L1, lua_State *L) {
86 /* initialize first ci */ 86 /* initialize first ci */
87 L1->ci->func = L1->top; 87 L1->ci->func = L1->top;
88 setnilvalue(L1->top++); /* 'function' entry for this 'ci' */ 88 setnilvalue(L1->top++); /* 'function' entry for this 'ci' */
89 L1->base = L1->ci->base = L1->top;
90 L1->ci->top = L1->top + LUA_MINSTACK; 89 L1->ci->top = L1->top + LUA_MINSTACK;
91 L1->ci->callstatus = 0; 90 L1->ci->callstatus = 0;
92} 91}