aboutsummaryrefslogtreecommitdiff
path: root/lstring.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-28 15:30:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-08-28 15:30:26 -0300
commit9a871dd3db1baf8c7ac3bb94f03eb1f1bc3532e9 (patch)
tree90a993daf7e7b5eb8e92e713b084cf086b684c53 /lstring.c
parent90972ff136f310f00b04d9e9837ee0640983b743 (diff)
downloadlua-9a871dd3db1baf8c7ac3bb94f03eb1f1bc3532e9.tar.gz
lua-9a871dd3db1baf8c7ac3bb94f03eb1f1bc3532e9.tar.bz2
lua-9a871dd3db1baf8c7ac3bb94f03eb1f1bc3532e9.zip
tables and userdata all go to local list, too
Diffstat (limited to 'lstring.c')
-rw-r--r--lstring.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lstring.c b/lstring.c
index 3fb86ab2..c76b6724 100644
--- a/lstring.c
+++ b/lstring.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstring.c,v 2.31 2013/08/23 13:34:54 roberto Exp roberto $ 2** $Id: lstring.c,v 2.32 2013/08/27 20:04:00 roberto Exp roberto $
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*/
@@ -213,7 +213,7 @@ Udata *luaS_newudata (lua_State *L, size_t s, Table *e) {
213 Udata *u; 213 Udata *u;
214 if (s > MAX_SIZE - sizeof(Udata)) 214 if (s > MAX_SIZE - sizeof(Udata))
215 luaM_toobig(L); 215 luaM_toobig(L);
216 u = &luaC_newobj(L, LUA_TUSERDATA, sizeof(Udata) + s, &G(L)->allgc, 0)->u; 216 u = &luaC_newobj(L, LUA_TUSERDATA, sizeof(Udata) + s, NULL, 0)->u;
217 u->uv.len = s; 217 u->uv.len = s;
218 u->uv.metatable = NULL; 218 u->uv.metatable = NULL;
219 u->uv.env = e; 219 u->uv.env = e;