diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-28 15:25:48 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-11-28 15:25:48 -0200 |
commit | 217b65e6d941f7ae1a615b2749d1b1d94d6da827 (patch) | |
tree | d128606b3eb801e21f5b6d78c1b00745b0b2b2da /ltable.c | |
parent | 8119374e7458073372408ccb8929ffb96537e411 (diff) | |
download | lua-217b65e6d941f7ae1a615b2749d1b1d94d6da827.tar.gz lua-217b65e6d941f7ae1a615b2749d1b1d94d6da827.tar.bz2 lua-217b65e6d941f7ae1a615b2749d1b1d94d6da827.zip |
avoid some warnings about converting 32-bit shifts into 64-bit results
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 | } |