diff options
author | Li Jin <dragon-fly@qq.com> | 2022-07-12 23:36:28 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-07-12 23:36:28 +0800 |
commit | 9beb7e00e8b030fdd7c3ecbad3f7ebe8ca14fda6 (patch) | |
tree | 52e272589c1f17d0bfc5725b080a5c5efdcd83f7 /src/yuescript/yue_compiler.cpp | |
parent | 68e167e9f0b90968ea67b7f21fdc50a48d129173 (diff) | |
download | yuescript-9beb7e00e8b030fdd7c3ecbad3f7ebe8ca14fda6.tar.gz yuescript-9beb7e00e8b030fdd7c3ecbad3f7ebe8ca14fda6.tar.bz2 yuescript-9beb7e00e8b030fdd7c3ecbad3f7ebe8ca14fda6.zip |
fix build.
Diffstat (limited to '')
-rwxr-xr-x | 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 468dc23..83bad2e 100755 --- a/src/yuescript/yue_compiler.cpp +++ b/src/yuescript/yue_compiler.cpp | |||
@@ -56,7 +56,7 @@ using namespace parserlib; | |||
56 | 56 | ||
57 | typedef std::list<std::string> str_list; | 57 | typedef std::list<std::string> str_list; |
58 | 58 | ||
59 | const std::string_view version = "0.13.0"sv; | 59 | const std::string_view version = "0.13.1"sv; |
60 | const std::string_view extension = "yue"sv; | 60 | const std::string_view extension = "yue"sv; |
61 | 61 | ||
62 | class YueCompilerImpl { | 62 | class YueCompilerImpl { |
@@ -7121,8 +7121,8 @@ private: | |||
7121 | for (auto branch_ : branches) { | 7121 | for (auto branch_ : branches) { |
7122 | auto branch = static_cast<SwitchCase_t*>(branch_); | 7122 | auto branch = static_cast<SwitchCase_t*>(branch_); |
7123 | if (auto value = singleValueFrom(branch->valueList); | 7123 | if (auto value = singleValueFrom(branch->valueList); |
7124 | value->item.is<simple_table_t>() || | 7124 | value && (value->item.is<simple_table_t>() || |
7125 | value->getByPath<SimpleValue_t, TableLit_t>()) { | 7125 | value->getByPath<SimpleValue_t, TableLit_t>())) { |
7126 | if (!firstBranch) { | 7126 | if (!firstBranch) { |
7127 | temp.push_back(indent() + "else"s + nll(branch)); | 7127 | temp.push_back(indent() + "else"s + nll(branch)); |
7128 | pushScope(); | 7128 | pushScope(); |