aboutsummaryrefslogtreecommitdiff
path: root/ltable.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-19 19:09:35 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-09-19 19:09:35 -0300
commit8fac494509523dba479640a3e9b60c6f929b0788 (patch)
tree956b1b88a54f8f90a02cc101dee15e774e125fc7 /ltable.c
parent9b72355f993567facefec570fd95c8909de33393 (diff)
downloadlua-8fac494509523dba479640a3e9b60c6f929b0788.tar.gz
lua-8fac494509523dba479640a3e9b60c6f929b0788.tar.bz2
lua-8fac494509523dba479640a3e9b60c6f929b0788.zip
Avoid Microsoft warning
> warning C4334: '<<': result of 32-bit shift implicitly converted to > 64 bits (was 64-bit shift intended?)
Diffstat (limited to 'ltable.c')
-rw-r--r--ltable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ltable.c b/ltable.c
index c2d957e9..80a1bf84 100644
--- a/ltable.c
+++ b/ltable.c
@@ -402,7 +402,8 @@ int luaH_next (lua_State *L, Table *t, StkId key) {
402 402
403static void freehash (lua_State *L, Table *t) { 403static void freehash (lua_State *L, Table *t) {
404 if (!isdummy(t)) { 404 if (!isdummy(t)) {
405 size_t bsize = sizenode(t) * sizeof(Node); /* 'node' size in bytes */ 405 /* 'node' size in bytes */
406 size_t bsize = cast_sizet(sizenode(t)) * sizeof(Node);
406 char *arr = cast_charp(t->node); 407 char *arr = cast_charp(t->node);
407 if (haslastfree(t)) { 408 if (haslastfree(t)) {
408 bsize += sizeof(Limbox); 409 bsize += sizeof(Limbox);