aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/analysis
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-09-27 05:46:33 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-09-27 05:46:33 +0800
commitee65ecfb3b80d9c027bade21df883e897b1234c5 (patch)
treee6343638f4450f532a0605d02b1b6b51192763ad /libsolidity/analysis
parenteb5a6aacd993e3782eaf0c0f9dbce03a0567512f (diff)
downloaddexon-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/analysis')
-rw-r--r--libsolidity/analysis/TypeChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp
index 4b2ec8d6..21d3dda6 100644
--- a/libsolidity/analysis/TypeChecker.cpp
+++ b/libsolidity/analysis/TypeChecker.cpp
@@ -1954,7 +1954,7 @@ void TypeChecker::endVisit(Literal const& _literal)
if (_literal.looksLikeAddress())
{
if (_literal.passesAddressChecksum())
- _literal.annotation().type = make_shared<IntegerType>(0, IntegerType::Modifier::Address);
+ _literal.annotation().type = make_shared<IntegerType>(160, IntegerType::Modifier::Address);
else
m_errorReporter.warning(
_literal.location(),