From 5423974e87e2128b45711269bb1f4f45b2f3a402 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 20 Apr 2018 17:54:34 +0100 Subject: Remove category check in FixedPointType:binaryOperatorResult as commonType handles the same --- libsolidity/ast/Types.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'libsolidity') 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(_other)) - if (integerType->isAddress()) - return TypePointer(); - auto commonType = Type::commonType(shared_from_this(), _other); if (!commonType) -- cgit v1.2.3