From 9beb7e00e8b030fdd7c3ecbad3f7ebe8ca14fda6 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Tue, 12 Jul 2022 23:36:28 +0800 Subject: fix build. --- src/yuescript/yue_compiler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; typedef std::list str_list; -const std::string_view version = "0.13.0"sv; +const std::string_view version = "0.13.1"sv; const std::string_view extension = "yue"sv; class YueCompilerImpl { @@ -7121,8 +7121,8 @@ private: for (auto branch_ : branches) { auto branch = static_cast(branch_); if (auto value = singleValueFrom(branch->valueList); - value->item.is() || - value->getByPath()) { + value && (value->item.is() || + value->getByPath())) { if (!firstBranch) { temp.push_back(indent() + "else"s + nll(branch)); pushScope(); -- cgit v1.2.3-55-g6feb