Add missing switch statement for Count unary operation to string
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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)
|
||||
{}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user