diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-07-18 17:48:52 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-07-18 17:48:52 +0800 |
| commit | a6579e94d8a41c694ed7a7db5036be99b0bf20cf (patch) | |
| tree | 1f4e50da2111bb082661625fbd74928f2d5417c2 | |
| parent | a092802f958780282ae34f3cccc3cc8ce2263ac9 (diff) | |
| download | yuescript-a6579e94d8a41c694ed7a7db5036be99b0bf20cf.tar.gz yuescript-a6579e94d8a41c694ed7a7db5036be99b0bf20cf.tar.bz2 yuescript-a6579e94d8a41c694ed7a7db5036be99b0bf20cf.zip | |
Fixed Windows x64 build.
| -rw-r--r-- | src/yuescript/yue_compiler.cpp | 6 | ||||
| -rw-r--r-- | win-build/Yuescript/Yuescript.vcxproj | 4 |
2 files changed, 7 insertions, 3 deletions
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: | |||
| 6777 | } | 6777 | } |
| 6778 | } | 6778 | } |
| 6779 | } | 6779 | } |
| 6780 | int len = lua_objlen(L, -1); | 6780 | int len = static_cast<int>(lua_objlen(L, -1)); |
| 6781 | lua_pushnil(L); // cur nil | 6781 | lua_pushnil(L); // cur nil |
| 6782 | for (int i = len; i >= 1; i--) { | 6782 | for (int i = len; i >= 1; i--) { |
| 6783 | lua_pop(L, 1); // cur | 6783 | lua_pop(L, 1); // cur |
| @@ -6792,7 +6792,7 @@ private: | |||
| 6792 | str_list checks; | 6792 | str_list checks; |
| 6793 | if (lua_istable(L, -1)) { | 6793 | if (lua_istable(L, -1)) { |
| 6794 | lua_rawgeti(L, -1, 1); // cur macrotab checks | 6794 | lua_rawgeti(L, -1, 1); // cur macrotab checks |
| 6795 | int len = lua_objlen(L, -1); | 6795 | int len = static_cast<int>(lua_objlen(L, -1)); |
| 6796 | for (int i = 1; i <= len; i++) { | 6796 | for (int i = 1; i <= len; i++) { |
| 6797 | lua_rawgeti(L, -1, i); | 6797 | lua_rawgeti(L, -1, i); |
| 6798 | if (lua_toboolean(L, -1) == 0) { | 6798 | if (lua_toboolean(L, -1) == 0) { |
| @@ -6852,7 +6852,7 @@ private: | |||
| 6852 | } // cur macroFunc | 6852 | } // cur macroFunc |
| 6853 | pushYue("pcall"sv); // cur macroFunc pcall | 6853 | pushYue("pcall"sv); // cur macroFunc pcall |
| 6854 | lua_insert(L, -2); // cur pcall macroFunc | 6854 | lua_insert(L, -2); // cur pcall macroFunc |
| 6855 | if (!lua_checkstack(L, argStrs.size())) { | 6855 | if (!lua_checkstack(L, static_cast<int>(argStrs.size()))) { |
| 6856 | throw CompileError("too much macro params"s, x); | 6856 | throw CompileError("too much macro params"s, x); |
| 6857 | } | 6857 | } |
| 6858 | auto checkIt = checks.begin(); | 6858 | auto checkIt = checks.begin(); |
diff --git a/win-build/Yuescript/Yuescript.vcxproj b/win-build/Yuescript/Yuescript.vcxproj index d073e70..87e13ce 100644 --- a/win-build/Yuescript/Yuescript.vcxproj +++ b/win-build/Yuescript/Yuescript.vcxproj | |||
| @@ -215,6 +215,7 @@ | |||
| 215 | <Link> | 215 | <Link> |
| 216 | <SubSystem>Console</SubSystem> | 216 | <SubSystem>Console</SubSystem> |
| 217 | <GenerateDebugInformation>true</GenerateDebugInformation> | 217 | <GenerateDebugInformation>true</GenerateDebugInformation> |
| 218 | <AdditionalOptions>/STACK:2097152 %(AdditionalOptions)</AdditionalOptions> | ||
| 218 | </Link> | 219 | </Link> |
| 219 | </ItemDefinitionGroup> | 220 | </ItemDefinitionGroup> |
| 220 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug53|x64'"> | 221 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug53|x64'"> |
| @@ -230,6 +231,7 @@ | |||
| 230 | <Link> | 231 | <Link> |
| 231 | <SubSystem>Console</SubSystem> | 232 | <SubSystem>Console</SubSystem> |
| 232 | <GenerateDebugInformation>true</GenerateDebugInformation> | 233 | <GenerateDebugInformation>true</GenerateDebugInformation> |
| 234 | <AdditionalOptions>/STACK:2097152 %(AdditionalOptions)</AdditionalOptions> | ||
| 233 | </Link> | 235 | </Link> |
| 234 | </ItemDefinitionGroup> | 236 | </ItemDefinitionGroup> |
| 235 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | 237 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
| @@ -287,6 +289,7 @@ | |||
| 287 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | 289 | <EnableCOMDATFolding>true</EnableCOMDATFolding> |
| 288 | <OptimizeReferences>true</OptimizeReferences> | 290 | <OptimizeReferences>true</OptimizeReferences> |
| 289 | <GenerateDebugInformation>true</GenerateDebugInformation> | 291 | <GenerateDebugInformation>true</GenerateDebugInformation> |
| 292 | <AdditionalOptions>/STACK:2097152 %(AdditionalOptions)</AdditionalOptions> | ||
| 290 | </Link> | 293 | </Link> |
| 291 | </ItemDefinitionGroup> | 294 | </ItemDefinitionGroup> |
| 292 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release53|x64'"> | 295 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release53|x64'"> |
| @@ -306,6 +309,7 @@ | |||
| 306 | <EnableCOMDATFolding>true</EnableCOMDATFolding> | 309 | <EnableCOMDATFolding>true</EnableCOMDATFolding> |
| 307 | <OptimizeReferences>true</OptimizeReferences> | 310 | <OptimizeReferences>true</OptimizeReferences> |
| 308 | <GenerateDebugInformation>true</GenerateDebugInformation> | 311 | <GenerateDebugInformation>true</GenerateDebugInformation> |
| 312 | <AdditionalOptions>/STACK:2097152 %(AdditionalOptions)</AdditionalOptions> | ||
| 309 | </Link> | 313 | </Link> |
| 310 | </ItemDefinitionGroup> | 314 | </ItemDefinitionGroup> |
| 311 | <ItemGroup> | 315 | <ItemGroup> |
