Ensure that address types are always declared as 160bit

This commit is contained in:
Alex Beregszaszi committed 2017-09-26 22:46:33 +01:00
1 parent eb5a6aacd9
commit ee65ecfb3b
5 files changed
+14 -14

No files matched your search

+1 -1
View File
@@ -541,7 +541,7 @@ void CompilerUtils::convertType(
else
{
solAssert(targetTypeCategory == Type::Category::Integer || targetTypeCategory == Type::Category::Contract, "");
IntegerType addressType(0, IntegerType::Modifier::Address);
IntegerType addressType(160, IntegerType::Modifier::Address);
IntegerType const& targetType = targetTypeCategory == Type::Category::Integer
? dynamic_cast<IntegerType const&>(_targetType) : addressType;
if (stackTypeCategory == Type::Category::RationalNumber)