aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-16 23:56:10 +0800
committerChristian <c@ethdev.com>2014-10-23 22:43:50 +0800
commit781d7fd5149f6e24d60cd0327841ca9f2fca23af (patch)
tree7b4d192d2de6377b34dcf5b3e72113fbb5819b0a /Types.cpp
parentfd046d7c9088498fbb0bded6a8ca69554155f483 (diff)
downloaddexon-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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Types.cpp b/Types.cpp
index 7634951a..d5ae0c3e 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -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