diff options
author | pixel <pixel> | 2008-02-17 00:35:20 +0000 |
---|---|---|
committer | pixel <pixel> | 2008-02-17 00:35:20 +0000 |
commit | 658b29261ca0a68f1c5f7f3c3efa20ab56a543b6 (patch) | |
tree | e3caffa9a9ed1d80e1f8e23d8e848176d5f08413 /lib/lua/src/lstate.c | |
parent | 546a2ad1f72410fd042625cd44d192804e3ea2d7 (diff) |
Upgrading to Lua 5.1.3
Diffstat (limited to 'lib/lua/src/lstate.c')
-rw-r--r-- | lib/lua/src/lstate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lua/src/lstate.c b/lib/lua/src/lstate.c index 8d5f3a6..10e8cda 100644 --- a/lib/lua/src/lstate.c +++ b/lib/lua/src/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 1.7 2007-07-27 10:05:54 pixel Exp $ +** $Id: lstate.c,v 1.8 2008-02-17 00:35:20 pixel Exp $ ** Global State ** See Copyright Notice in lua.h */ @@ -93,7 +93,7 @@ static void preinit_state (lua_State *L, global_State *g) { resethookcount(L); L->openupval = NULL; L->size_ci = 0; - L->nCcalls = 0; + L->nCcalls = L->baseCcalls = 0; L->status = 0; L->base_ci = L->ci = NULL; L->savedpc = NULL; @@ -213,7 +213,7 @@ LUA_API void lua_close (lua_State *L) { do { /* repeat until no more errors */ L->ci = L->base_ci; L->base = L->top = L->ci->base; - L->nCcalls = 0; + L->nCcalls = L->baseCcalls = 0; } while (luaD_rawrunprotected(L, callallgcTM, NULL) != 0); lua_assert(G(L)->tmudata == NULL); luai_userstateclose(L); |