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 /src | |
| parent | a092802f958780282ae34f3cccc3cc8ce2263ac9 (diff) | |
| download | yuescript-a6579e94d8a41c694ed7a7db5036be99b0bf20cf.tar.gz yuescript-a6579e94d8a41c694ed7a7db5036be99b0bf20cf.tar.bz2 yuescript-a6579e94d8a41c694ed7a7db5036be99b0bf20cf.zip | |
Fixed Windows x64 build.
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuescript/yue_compiler.cpp | 6 |
1 files changed, 3 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(); |
