diff options
author | Christian <c@ethdev.com> | 2014-10-16 23:56:10 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-10-23 22:43:50 +0800 |
commit | 781d7fd5149f6e24d60cd0327841ca9f2fca23af (patch) | |
tree | 7b4d192d2de6377b34dcf5b3e72113fbb5819b0a /Types.cpp | |
parent | fd046d7c9088498fbb0bded6a8ca69554155f483 (diff) | |
download | dexon-solidity-781d7fd5149f6e24d60cd0327841ca9f2fca23af.tar.gz dexon-solidity-781d7fd5149f6e24d60cd0327841ca9f2fca23af.tar.zst dexon-solidity-781d7fd5149f6e24d60cd0327841ca9f2fca23af.zip |
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
@@ -88,9 +88,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 |