aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Types.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/Types.cpp b/Types.cpp
index 04f86b92..4b5dddac 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -536,14 +536,8 @@ bool FixedBytesType::isImplicitlyConvertibleTo(Type const& _convertTo) const
bool FixedBytesType::isExplicitlyConvertibleTo(Type const& _convertTo) const
{
- if (_convertTo.getCategory() == Category::Integer)
- {
- IntegerType const& convertTo = dynamic_cast<IntegerType const&>(_convertTo);
- if (m_bytes * 8 <= convertTo.getNumBits())
- return true;
- }
-
- return _convertTo.getCategory() == Category::Contract ||
+ return _convertTo.getCategory() == Category::Integer ||
+ _convertTo.getCategory() == Category::Contract ||
_convertTo.getCategory() == getCategory();
}