aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-18 09:17:54 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-18 09:17:54 -0300
commit56137d58ff7abe8cb22ee3469366e08888c84f28 (patch)
tree6769e3c2403a69cf3f0d6dbf6fb4acb7442367e0 /lstate.c
parent9aec500a2691d2b13c307d143868c8a4fab33220 (diff)
downloadlua-56137d58ff7abe8cb22ee3469366e08888c84f28.tar.gz
lua-56137d58ff7abe8cb22ee3469366e08888c84f28.tar.bz2
lua-56137d58ff7abe8cb22ee3469366e08888c84f28.zip
added check for conversion 'obj2gco' (and corrections for small
problems detected by this check)
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstate.c b/lstate.c
index 123dd198..bab3abaf 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.120 2014/02/18 13:39:37 roberto Exp roberto $ 2** $Id: lstate.c,v 2.121 2014/02/18 13:46:26 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*/
@@ -206,7 +206,7 @@ static void f_luaopen (lua_State *L, void *ud) {
206 luaX_init(L); 206 luaX_init(L);
207 /* pre-create memory-error message */ 207 /* pre-create memory-error message */
208 g->memerrmsg = luaS_newliteral(L, MEMERRMSG); 208 g->memerrmsg = luaS_newliteral(L, MEMERRMSG);
209 luaC_fix(L, obj2gco(g->memerrmsg)); /* it should never be collected */ 209 luaC_fix(L, ts2gco(g->memerrmsg)); /* it should never be collected */
210 g->gcrunning = 1; /* allow gc */ 210 g->gcrunning = 1; /* allow gc */
211 g->version = lua_version(NULL); 211 g->version = lua_version(NULL);
212 luai_userstateopen(L); 212 luai_userstateopen(L);