From 6e62a0f61461bddb87c96f00ce3c68c002d9cf40 Mon Sep 17 00:00:00 2001 From: Kamil Rakoczy Date: Wed, 24 Jul 2024 11:33:17 +0200 Subject: [PATCH] Fix missing $ in name Signed-off-by: Kamil Rakoczy --- templates/ExprEval.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/ExprEval.cpp b/templates/ExprEval.cpp index 8eeb248e..7987ce2f 100644 --- a/templates/ExprEval.cpp +++ b/templates/ExprEval.cpp @@ -2568,12 +2568,12 @@ any *ExprEval::hierarchicalSelector(std::vector &select_path, } tmp->Ranges(tmpR); return tmp; - } + } } else if (const array_typespec *ltps = any_cast(object)) { if (const ref_typespec *rt = ltps->Elem_typespec()) { return (typespec *)rt->Actual_typespec(); - } + } } else if (const packed_array_typespec *ltps = any_cast(object)) { if (const ref_typespec *rt = ltps->Elem_typespec()) { @@ -4049,17 +4049,17 @@ expr *ExprEval::reduceExpr(const any *result, bool &invalidValue, int64_t lrv = eval.get_value(invalidValue, lr); rr = reduceExpr(rr, invalidValue, inst, pexpr, muteError); int64_t rrv = eval.get_value(invalidValue, rr); - if (name == "left") { + if (name == "$left") { return lr; - } else if (name == "right") { + } else if (name == "$right") { return rr; - } else if (name == "high") { + } else if (name == "$high") { if (lrv > rrv) { return lr; } else { return rr; } - } else if (name == "low") { + } else if (name == "$low") { if (lrv > rrv) { return rr; } else {