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

This commit is contained in:
Deukhoofd 2019-09-19 13:28:32 +02:00
parent 454c0c581d
commit a7fee1437c
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 2 additions and 1 deletions

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