From a6579e94d8a41c694ed7a7db5036be99b0bf20cf Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 18 Jul 2025 17:48:52 +0800 Subject: Fixed Windows x64 build. --- src/yuescript/yue_compiler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp index b01465f..d45c3be 100644 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp @@ -6777,7 +6777,7 @@ private: } } } - int len = lua_objlen(L, -1); + int len = static_cast(lua_objlen(L, -1)); lua_pushnil(L); // cur nil for (int i = len; i >= 1; i--) { lua_pop(L, 1); // cur @@ -6792,7 +6792,7 @@ private: str_list checks; if (lua_istable(L, -1)) { lua_rawgeti(L, -1, 1); // cur macrotab checks - int len = lua_objlen(L, -1); + int len = static_cast(lua_objlen(L, -1)); for (int i = 1; i <= len; i++) { lua_rawgeti(L, -1, i); if (lua_toboolean(L, -1) == 0) { @@ -6852,7 +6852,7 @@ private: } // cur macroFunc pushYue("pcall"sv); // cur macroFunc pcall lua_insert(L, -2); // cur pcall macroFunc - if (!lua_checkstack(L, argStrs.size())) { + if (!lua_checkstack(L, static_cast(argStrs.size()))) { throw CompileError("too much macro params"s, x); } auto checkIt = checks.begin(); -- cgit v1.2.3-55-g6feb