Add missing switch statement for Count unary operation to string
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
454c0c581d
commit
a7fee1437c
|
@ -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)
|
||||
{}
|
||||
|
||||
|
|
Loading…
Reference in New Issue