mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove category check in FixedPointType:binaryOperatorResult as commonType handles the same
This commit is contained in:
parent
57003c534a
commit
5423974e87
@ -681,17 +681,6 @@ bigint FixedPointType::minIntegerValue() const
|
|||||||
|
|
||||||
TypePointer FixedPointType::binaryOperatorResult(Token::Value _operator, TypePointer const& _other) const
|
TypePointer FixedPointType::binaryOperatorResult(Token::Value _operator, TypePointer const& _other) const
|
||||||
{
|
{
|
||||||
if (
|
|
||||||
_other->category() != Category::RationalNumber &&
|
|
||||||
_other->category() != category() &&
|
|
||||||
_other->category() != Category::Integer
|
|
||||||
)
|
|
||||||
return TypePointer();
|
|
||||||
|
|
||||||
if (auto integerType = dynamic_pointer_cast<IntegerType const>(_other))
|
|
||||||
if (integerType->isAddress())
|
|
||||||
return TypePointer();
|
|
||||||
|
|
||||||
auto commonType = Type::commonType(shared_from_this(), _other);
|
auto commonType = Type::commonType(shared_from_this(), _other);
|
||||||
|
|
||||||
if (!commonType)
|
if (!commonType)
|
||||||
|
Loading…
Reference in New Issue
Block a user