aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-08 00:34:15 +0800
committerChristian <c@ethdev.com>2014-11-08 00:34:50 +0800
commit4c8e670530675c7b7774b0d5355ee9aadd92f3a2 (patch)
tree0d970b99df0f810388a8e8bdf47b9838e7c68834 /Types.cpp
parentafa4e9f5754eff97904a3332ca23f0913d736688 (diff)
downloaddexon-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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Types.cpp b/Types.cpp
index 7354255e..4431a32f 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -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)));
}