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) {}