diff options
author | Christian <c@ethdev.com> | 2014-11-08 00:34:15 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-11-08 00:34:50 +0800 |
commit | 4c8e670530675c7b7774b0d5355ee9aadd92f3a2 (patch) | |
tree | 0d970b99df0f810388a8e8bdf47b9838e7c68834 /Types.cpp | |
parent | afa4e9f5754eff97904a3332ca23f0913d736688 (diff) | |
download | dexon-solidity-4c8e670530675c7b7774b0d5355ee9aadd92f3a2.tar.gz dexon-solidity-4c8e670530675c7b7774b0d5355ee9aadd92f3a2.tar.zst dexon-solidity-4c8e670530675c7b7774b0d5355ee9aadd92f3a2.zip |
Bugfix: Bit width of address types.
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -103,8 +103,8 @@ IntegerType::IntegerType(int _bits, IntegerType::Modifier _modifier): m_bits(_bits), m_modifier(_modifier) { if (isAddress()) - _bits = 160; - if (asserts(_bits > 0 && _bits <= 256 && _bits % 8 == 0)) + m_bits = 160; + if (asserts(m_bits > 0 && m_bits <= 256 && m_bits % 8 == 0)) BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Invalid bit number for integer type: " + dev::toString(_bits))); } |