aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-04-17 11:40:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2009-04-17 11:40:13 -0300
commitc6b442bd369ce05b3d4bfb95ba64451521aa1b31 (patch)
treef46b96d8142564c05ad89400bb203510b71cb2b2 /ltable.c
parent4f88418170d298b065a7f71d86b1127153919ae9 (diff)
downloadlua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.tar.gz
lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.tar.bz2
lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.zip
'luaM_freearray' does not need array type as argument
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ltable.c b/ltable.c
index 22419283..4af7143e 100644
--- a/ltable.c
+++ b/ltable.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltable.c,v 2.38 2008/01/30 18:05:23 roberto Exp roberto $ 2** $Id: ltable.c,v 2.39 2009/03/30 18:38:24 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*/
@@ -320,7 +320,7 @@ void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize) {
320 setobjt2t(L, luaH_set(L, t, key2tval(old)), gval(old)); 320 setobjt2t(L, luaH_set(L, t, key2tval(old)), gval(old));
321 } 321 }
322 if (nold != dummynode) 322 if (nold != dummynode)
323 luaM_freearray(L, nold, twoto(oldhsize), Node); /* free old array */ 323 luaM_freearray(L, nold, twoto(oldhsize)); /* free old array */
324} 324}
325 325
326 326
@@ -369,8 +369,8 @@ Table *luaH_new (lua_State *L) {
369 369
370void luaH_free (lua_State *L, Table *t) { 370void luaH_free (lua_State *L, Table *t) {
371 if (t->node != dummynode) 371 if (t->node != dummynode)
372 luaM_freearray(L, t->node, sizenode(t), Node); 372 luaM_freearray(L, t->node, sizenode(t));
373 luaM_freearray(L, t->array, t->sizearray, TValue); 373 luaM_freearray(L, t->array, t->sizearray);
374 luaM_free(L, t); 374 luaM_free(L, t);
375} 375}
376 376