Add missing switch statement for Count unary operation to string
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-09-19 13:28:32 +02:00
parent 454c0c581d
commit a7fee1437c

View File

@@ -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<const ScriptType> castType)
: BoundExpression(expression->GetStartPosition(), expression->GetLength(), castType),
: BoundExpression(expression->GetStartPosition(), expression->GetLength(), std::move(castType)),
_expression(expression)
{}