Skip to content

Commit 8fac494

Browse files
committed
Avoid Microsoft warning
> warning C4334: '<<': result of 32-bit shift implicitly converted to > 64 bits (was 64-bit shift intended?)
1 parent 9b72355 commit 8fac494

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ltable.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ int luaH_next (lua_State *L, Table *t, StkId key) {
402402

403403
static void freehash (lua_State *L, Table *t) {
404404
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);
406407
char *arr = cast_charp(t->node);
407408
if (haslastfree(t)) {
408409
bsize += sizeof(Limbox);

0 commit comments

Comments
 (0)