diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-27 05:46:33 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-27 05:46:33 +0800 |
commit | ee65ecfb3b80d9c027bade21df883e897b1234c5 (patch) | |
tree | e6343638f4450f532a0605d02b1b6b51192763ad /libsolidity/codegen/CompilerUtils.cpp | |
parent | eb5a6aacd993e3782eaf0c0f9dbce03a0567512f (diff) | |
download | dexon-solidity-ee65ecfb3b80d9c027bade21df883e897b1234c5.tar.gz dexon-solidity-ee65ecfb3b80d9c027bade21df883e897b1234c5.tar.zst dexon-solidity-ee65ecfb3b80d9c027bade21df883e897b1234c5.zip |
Ensure that address types are always declared as 160bit
Diffstat (limited to 'libsolidity/codegen/CompilerUtils.cpp')
-rw-r--r-- | libsolidity/codegen/CompilerUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index c1171c1d..ce97ed61 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -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) |