aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2014-10-25 01:17:08 +0800
committerGav Wood <g@ethdev.com>2014-10-25 01:17:08 +0800
commitc6e0f82d2ebcbb77a24a287767d81674f78c62d7 (patch)
tree508c872a937f13b9a2900bf39181c7833793ee84 /Types.cpp
parent987f42aa38bd51b612436425af4f4a0fdf0416c4 (diff)
parent2a24c3d8109d34cea6e47de77f519565e42c60fe (diff)
downloaddexon-solidity-c6e0f82d2ebcbb77a24a287767d81674f78c62d7.tar.gz
dexon-solidity-c6e0f82d2ebcbb77a24a287767d81674f78c62d7.tar.zst
dexon-solidity-c6e0f82d2ebcbb77a24a287767d81674f78c62d7.zip
Merge pull request #410 from chriseth/sol_exceptions
Improved exceptions and reporting exceptions for command-line compiler.
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Types.cpp b/Types.cpp
index 91dccb46..62324f8c 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -89,9 +89,9 @@ std::shared_ptr<IntegerType> IntegerType::smallestTypeForLiteral(std::string con
IntegerType::IntegerType(int _bits, IntegerType::Modifier _modifier):
m_bits(_bits), m_modifier(_modifier)
{
- BOOST_ASSERT(_bits > 0 && _bits <= 256 && _bits % 8 == 0);
if (isAddress())
_bits = 160;
+ BOOST_ASSERT(_bits > 0 && _bits <= 256 && _bits % 8 == 0);
}
bool IntegerType::isImplicitlyConvertibleTo(Type const& _convertTo) const