diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-17 11:40:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-17 11:40:13 -0300 |
commit | c6b442bd369ce05b3d4bfb95ba64451521aa1b31 (patch) | |
tree | f46b96d8142564c05ad89400bb203510b71cb2b2 /ltable.c | |
parent | 4f88418170d298b065a7f71d86b1127153919ae9 (diff) | |
download | lua-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 | ||
370 | void luaH_free (lua_State *L, Table *t) { | 370 | void 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 | ||