mirror of
https://github.com/lua/lua
synced 2024-11-22 04:41:23 +03:00
Avoid Microsoft warning
> warning C4334: '<<': result of 32-bit shift implicitly converted to > 64 bits (was 64-bit shift intended?)
This commit is contained in:
parent
9b72355f99
commit
8fac494509
3
ltable.c
3
ltable.c
@ -402,7 +402,8 @@ int luaH_next (lua_State *L, Table *t, StkId key) {
|
|||||||
|
|
||||||
static void freehash (lua_State *L, Table *t) {
|
static void freehash (lua_State *L, Table *t) {
|
||||||
if (!isdummy(t)) {
|
if (!isdummy(t)) {
|
||||||
size_t bsize = sizenode(t) * sizeof(Node); /* 'node' size in bytes */
|
/* 'node' size in bytes */
|
||||||
|
size_t bsize = cast_sizet(sizenode(t)) * sizeof(Node);
|
||||||
char *arr = cast_charp(t->node);
|
char *arr = cast_charp(t->node);
|
||||||
if (haslastfree(t)) {
|
if (haslastfree(t)) {
|
||||||
bsize += sizeof(Limbox);
|
bsize += sizeof(Limbox);
|
||||||
|
Loading…
Reference in New Issue
Block a user