diff options
author | Christian <c@ethdev.com> | 2014-11-04 20:24:35 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2014-11-06 09:22:24 +0800 |
commit | de493c673f2e850505d79185d104012825a7eabc (patch) | |
tree | 9496584d066c4454e85a795a053ea0037860785a /AST.cpp | |
parent | e30d3f8d539882376b29a1fe8f4bf6bcaf8c1762 (diff) | |
download | dexon-solidity-de493c673f2e850505d79185d104012825a7eabc.tar.gz dexon-solidity-de493c673f2e850505d79185d104012825a7eabc.tar.zst dexon-solidity-de493c673f2e850505d79185d104012825a7eabc.zip |
Detect integer length from literals and remove "std::".
Diffstat (limited to 'AST.cpp')
-rw-r--r-- | AST.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -497,6 +497,8 @@ void ElementaryTypeNameExpression::checkTypeRequirements() void Literal::checkTypeRequirements() { m_type = Type::forLiteral(*this); + if (!m_type) + BOOST_THROW_EXCEPTION(createTypeError("Literal value too large.")); } } |