diff --git a/cmake/define.inc b/cmake/define.inc index add67fec5739016ad257381ef85de48d2035d0bd..ca169f2e0ca0dacbd0dad964f9378da7a70b53eb 100755 --- a/cmake/define.inc +++ b/cmake/define.inc @@ -168,6 +168,7 @@ IF (TD_WINDOWS) INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/regex) INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/wepoll/inc) INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/MsvcLibX/include) + INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/deps/lua/src) ENDIF () IF (TD_WINDOWS_64) diff --git a/deps/lua/src/lobject.h b/deps/lua/src/lobject.h index 8ce4405b6aeaa550d6cbe3a51a65e43e693118f5..5a4506e580a9a08426a3e25fc81335e153ccff06 100644 --- a/deps/lua/src/lobject.h +++ b/deps/lua/src/lobject.h @@ -10,7 +10,7 @@ #include - +#include #include "llimits.h" #include "lua.h" @@ -357,7 +357,7 @@ typedef struct Table { #define twoto(x) (1<<(x)) -#define sizenode(t) (twoto((t)->lsizenode)) +#define sizenode(t) (twoto((int64_t)((t)->lsizenode))) #define luaO_nilobject (&luaO_nilobject_)