diff --git a/include/behaviortree_cpp/scripting/operators.hpp b/include/behaviortree_cpp/scripting/operators.hpp index 5faca77b3..14cf04f43 100644 --- a/include/behaviortree_cpp/scripting/operators.hpp +++ b/include/behaviortree_cpp/scripting/operators.hpp @@ -279,9 +279,9 @@ struct ExprBinaryArithmetic : ExprBase { return Any(lhs_v.cast() + rhs_v.cast()); } - else if (op == concat && ((rhs_v.isString() && lhs_v.isString()) || - (rhs_v.isString() && lhs_v.isNumber()) || - (rhs_v.isNumber() && lhs_v.isString()))) + else if(op == concat && ((rhs_v.isString() && lhs_v.isString()) || + (rhs_v.isString() && lhs_v.isNumber()) || + (rhs_v.isNumber() && lhs_v.isString()))) { return Any(lhs_v.cast() + rhs_v.cast()); } @@ -737,7 +737,7 @@ struct Expression : lexy::expression_production static constexpr auto op = [] { return dsl::op(LEXY_LIT("..")); }(); - + using operand = math_sum; };