aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2025-01-30 13:46:12 +0800
committerLi Jin <dragon-fly@qq.com>2025-01-30 13:46:12 +0800
commitcf91f61990babdd8a80774809e9e860a155e4201 (patch)
treef163ca2a655f614c844ae786c5c0fe73a9422ef2 /src
parent56287718ddbb85b66a011e014f01a844580caf16 (diff)
downloadyuescript-cf91f61990babdd8a80774809e9e860a155e4201.tar.gz
yuescript-cf91f61990babdd8a80774809e9e860a155e4201.tar.bz2
yuescript-cf91f61990babdd8a80774809e9e860a155e4201.zip
Fixed one more case for issue #185.
Diffstat (limited to 'src')
-rw-r--r--src/yuescript/yue_compiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuescript/yue_compiler.cpp b/src/yuescript/yue_compiler.cpp
index eb12b3f..369f7e8 100644
--- a/src/yuescript/yue_compiler.cpp
+++ b/src/yuescript/yue_compiler.cpp
@@ -75,7 +75,7 @@ static std::unordered_set<std::string> Metamethods = {
75 "close"s // Lua 5.4 75 "close"s // Lua 5.4
76}; 76};
77 77
78const std::string_view version = "0.26.2"sv; 78const std::string_view version = "0.26.3"sv;
79const std::string_view extension = "yue"sv; 79const std::string_view extension = "yue"sv;
80 80
81class CompileError : public std::logic_error { 81class CompileError : public std::logic_error {
@@ -7031,7 +7031,7 @@ private:
7031 } else { 7031 } else {
7032 for (const auto& exp : tmp) { 7032 for (const auto& exp : tmp) {
7033 _buf << exp << " == "sv << newVar; 7033 _buf << exp << " == "sv << newVar;
7034 if (exp != tmp.back()) { 7034 if (&exp != &tmp.back()) {
7035 _buf << " or "sv; 7035 _buf << " or "sv;
7036 } 7036 }
7037 } 7037 }