diff options
author | Gav Wood <g@ethdev.com> | 2014-10-25 01:17:08 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2014-10-25 01:17:08 +0800 |
commit | c6e0f82d2ebcbb77a24a287767d81674f78c62d7 (patch) | |
tree | 508c872a937f13b9a2900bf39181c7833793ee84 /Types.cpp | |
parent | 987f42aa38bd51b612436425af4f4a0fdf0416c4 (diff) | |
parent | 2a24c3d8109d34cea6e47de77f519565e42c60fe (diff) | |
download | dexon-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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |