aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/yuescript/yue_compiler.cpp6
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();