mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Re-use commonType
This commit is contained in:
parent
48c7ba72f3
commit
e7ed9d878e
@ -56,7 +56,7 @@ void ConstantEvaluator::endVisit(BinaryOperation const& _operation)
|
|||||||
_operation,
|
_operation,
|
||||||
Token::isCompareOp(_operation.getOperator()) ?
|
Token::isCompareOp(_operation.getOperator()) ?
|
||||||
make_shared<BoolType>() :
|
make_shared<BoolType>() :
|
||||||
left->binaryOperatorResult(_operation.getOperator(), right)
|
commonType
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user