Re-use commonType

This commit is contained in:
chriseth 2017-12-12 10:45:40 +01:00 committed by GitHub
parent 48c7ba72f3
commit e7ed9d878e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ void ConstantEvaluator::endVisit(BinaryOperation const& _operation)
_operation,
Token::isCompareOp(_operation.getOperator()) ?
make_shared<BoolType>() :
left->binaryOperatorResult(_operation.getOperator(), right)
commonType
);
}
}