aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-04-21 00:54:34 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-04-21 00:54:34 +0800
commit5423974e87e2128b45711269bb1f4f45b2f3a402 (patch)
tree915364675119d90b95aa96b5496ac7f4d0315765 /libsolidity
parent57003c534ad02f4a3dc596130257333965e3396a (diff)
downloaddexon-solidity-5423974e87e2128b45711269bb1f4f45b2f3a402.tar
dexon-solidity-5423974e87e2128b45711269bb1f4f45b2f3a402.tar.gz
dexon-solidity-5423974e87e2128b45711269bb1f4f45b2f3a402.tar.bz2
dexon-solidity-5423974e87e2128b45711269bb1f4f45b2f3a402.tar.lz
dexon-solidity-5423974e87e2128b45711269bb1f4f45b2f3a402.tar.xz
dexon-solidity-5423974e87e2128b45711269bb1f4f45b2f3a402.tar.zst
dexon-solidity-5423974e87e2128b45711269bb1f4f45b2f3a402.zip
Remove category check in FixedPointType:binaryOperatorResult as commonType handles the same
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/ast/Types.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 0a25268b..60b4d726 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -681,17 +681,6 @@ bigint FixedPointType::minIntegerValue() 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);
if (!commonType)