From a7fee1437cab9aebafff76c5d264179b1fb71712 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 19 Sep 2019 13:28:32 +0200 Subject: [PATCH] Add missing switch statement for Count unary operation to string --- src/Binder/BoundExpressions/BoundExpression.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Binder/BoundExpressions/BoundExpression.hpp b/src/Binder/BoundExpressions/BoundExpression.hpp index b8c48a9..ce9a216 100644 --- a/src/Binder/BoundExpressions/BoundExpression.hpp +++ b/src/Binder/BoundExpressions/BoundExpression.hpp @@ -374,6 +374,7 @@ namespace Porygon::Binder { switch (op){ case BoundUnaryOperation::Negation: return "negation"; case BoundUnaryOperation::LogicalNegation: return "logicalNegation"; + case BoundUnaryOperation::Count: return "count"; } throw exception(); } @@ -503,7 +504,7 @@ namespace Porygon::Binder { const BoundExpression* _expression; public: BoundCastExpression(BoundExpression* expression, shared_ptr castType) - : BoundExpression(expression->GetStartPosition(), expression->GetLength(), castType), + : BoundExpression(expression->GetStartPosition(), expression->GetLength(), std::move(castType)), _expression(expression) {}