aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index 0b38615a..a65c9d85 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.3 2004/02/16 19:09:52 roberto Exp roberto $ 2** $Id: lstate.c,v 2.4 2004/03/15 21:04:33 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*/
@@ -82,6 +82,7 @@ static void f_luaopen (lua_State *L, void *ud) {
82 G(L)->firstudata = obj2gco(u); 82 G(L)->firstudata = obj2gco(u);
83 luaC_link(L, obj2gco(u), LUA_TUSERDATA); 83 luaC_link(L, obj2gco(u), LUA_TUSERDATA);
84 setbit(u->uv.marked, FIXEDBIT); 84 setbit(u->uv.marked, FIXEDBIT);
85 setbit(L->marked, FIXEDBIT);
85 stack_init(L, L); /* init stack */ 86 stack_init(L, L); /* init stack */
86 sethvalue(L, gt(L), luaH_new(L, 0, 4)); /* table of globals */ 87 sethvalue(L, gt(L), luaH_new(L, 0, 4)); /* table of globals */
87 sethvalue(L, registry(L), luaH_new(L, 4, 4)); /* registry */ 88 sethvalue(L, registry(L), luaH_new(L, 4, 4)); /* registry */