diff options
Diffstat (limited to 'ltable.c')
-rw-r--r-- | ltable.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltable.c,v 2.64 2011/09/24 21:12:01 roberto Exp roberto $ | 2 | ** $Id: ltable.c,v 2.65 2011/09/30 12:45:27 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 | */ |
@@ -322,7 +322,7 @@ void luaH_resize (lua_State *L, Table *t, int nasize, int nhsize) { | |||
322 | } | 322 | } |
323 | } | 323 | } |
324 | if (!isdummy(nold)) | 324 | if (!isdummy(nold)) |
325 | luaM_freearray(L, nold, twoto(oldhsize)); /* free old array */ | 325 | luaM_freearray(L, nold, cast(size_t, twoto(oldhsize))); /* free old array */ |
326 | } | 326 | } |
327 | 327 | ||
328 | 328 | ||
@@ -370,7 +370,7 @@ Table *luaH_new (lua_State *L) { | |||
370 | 370 | ||
371 | void luaH_free (lua_State *L, Table *t) { | 371 | void luaH_free (lua_State *L, Table *t) { |
372 | if (!isdummy(t->node)) | 372 | if (!isdummy(t->node)) |
373 | luaM_freearray(L, t->node, sizenode(t)); | 373 | luaM_freearray(L, t->node, cast(size_t, sizenode(t))); |
374 | luaM_freearray(L, t->array, t->sizearray); | 374 | luaM_freearray(L, t->array, t->sizearray); |
375 | luaM_free(L, t); | 375 | luaM_free(L, t); |
376 | } | 376 | } |