mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Ensure that address types are always declared as 160bit
This commit is contained in:
1 parent
eb5a6aacd9
commit
ee65ecfb3b
5 files changed
+14
-14
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user