From 5fd5e775a6e24e742b8baec17571b4baf53dbb78 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Tue, 18 May 2021 17:55:08 +0800 Subject: [PATCH] fix compile error on windows --- deps/lua/src/lobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/lua/src/lobject.h b/deps/lua/src/lobject.h index 5a4506e580..6e53e5a5fe 100644 --- a/deps/lua/src/lobject.h +++ b/deps/lua/src/lobject.h @@ -356,7 +356,7 @@ typedef struct Table { (check_exp((size&(size-1))==0, (cast(int, (s) & ((size)-1))))) -#define twoto(x) (1<<(x)) +#define twoto(x) (1<<(int64_t)(x)) #define sizenode(t) (twoto((int64_t)((t)->lsizenode))) -- GitLab