summaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-09-11 09:26:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-09-11 09:26:14 -0300
commit115087344797d0aafb23f4fe5b902fdebd2c3310 (patch)
tree732c83cee53b9d67b83cebfc2e5debd30d48eeed /ltable.c
parent79ab21be90792c00da98e5ec3d55c8a082c6e6de (diff)
downloadlua-115087344797d0aafb23f4fe5b902fdebd2c3310.tar.gz
lua-115087344797d0aafb23f4fe5b902fdebd2c3310.tar.bz2
lua-115087344797d0aafb23f4fe5b902fdebd2c3310.zip
'luaC_newobj' does not handle special cases; only special case
now is threads, which do not use 'luaC_newobj' anymore.
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltable.c b/ltable.c
index a582feaa..493782db 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.81 2013/08/28 18:30:26 roberto Exp roberto $ 2** $Id: ltable.c,v 2.82 2013/08/29 13:49:57 roberto Exp roberto $
3** Lua tables (hash) 3** Lua tables (hash)
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -378,7 +378,7 @@ static void rehash (lua_State *L, Table *t, const TValue *ek) {
378 378
379 379
380Table *luaH_new (lua_State *L) { 380Table *luaH_new (lua_State *L) {
381 Table *t = &luaC_newobj(L, LUA_TTABLE, sizeof(Table), NULL, 0)->h; 381 Table *t = &luaC_newobj(L, LUA_TTABLE, sizeof(Table))->h;
382 t->metatable = NULL; 382 t->metatable = NULL;
383 t->flags = cast_byte(~0); 383 t->flags = cast_byte(~0);
384 t->array = NULL; 384 t->array = NULL;