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

This commit is contained in:
Deukhoofd committed 2019-09-19 13:28:32 +02:00
1 parent 454c0c581d
commit a7fee1437c
1 file changed
+2 -1
@@ -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)
{}