aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-18 10:36:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-07-18 10:36:14 -0300
commitca41b43f53562e64abe433d6346d174c92548603 (patch)
tree03f7a99f76359fc1e0bbc45fc13e579ff2aafabb /lstate.c
parent3511e186cde4b78f268d17199d0f46fb3eaa9638 (diff)
downloadlua-ca41b43f53562e64abe433d6346d174c92548603.tar.gz
lua-ca41b43f53562e64abe433d6346d174c92548603.tar.bz2
lua-ca41b43f53562e64abe433d6346d174c92548603.zip
type 'TString' refers directly to the structure inside the union
(union used only for size purposes)
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 bab3abaf..607af60a 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 2.121 2014/02/18 13:46:26 roberto Exp roberto $ 2** $Id: lstate.c,v 2.122 2014/07/18 12:17:54 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, ts2gco(g->memerrmsg)); /* it should never be collected */ 209 luaC_fix(L, obj2gco(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);