diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-18 09:17:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-07-18 09:17:54 -0300 |
commit | 56137d58ff7abe8cb22ee3469366e08888c84f28 (patch) | |
tree | 6769e3c2403a69cf3f0d6dbf6fb4acb7442367e0 /lstate.c | |
parent | 9aec500a2691d2b13c307d143868c8a4fab33220 (diff) | |
download | lua-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |