aboutsummaryrefslogtreecommitdiff
path: root/lstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstring.c')
-rw-r--r--lstring.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lstring.c b/lstring.c
index 995f7ccf..0c82220e 100644
--- a/lstring.c
+++ b/lstring.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstring.c,v 2.4 2004/11/19 15:52:40 roberto Exp roberto $ 2** $Id: lstring.c,v 2.5 2004/11/24 19:16:03 roberto Exp $
3** String table (keeps all strings handled by Lua) 3** String table (keeps all strings handled by Lua)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -102,9 +102,9 @@ Udata *luaS_newudata (lua_State *L, size_t s) {
102 u->uv.tt = LUA_TUSERDATA; 102 u->uv.tt = LUA_TUSERDATA;
103 u->uv.len = s; 103 u->uv.len = s;
104 u->uv.metatable = NULL; 104 u->uv.metatable = NULL;
105 /* chain it on udata list */ 105 /* chain it on udata list (after main thread) */
106 u->uv.next = G(L)->firstudata->uv.next; 106 u->uv.next = G(L)->mainthread->next;
107 G(L)->firstudata->uv.next = obj2gco(u); 107 G(L)->mainthread->next = obj2gco(u);
108 return u; 108 return u;
109} 109}
110 110