aboutsummaryrefslogtreecommitdiffstats
path: root/AST.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-04 20:24:35 +0800
committerChristian <c@ethdev.com>2014-11-06 09:22:24 +0800
commitde493c673f2e850505d79185d104012825a7eabc (patch)
tree9496584d066c4454e85a795a053ea0037860785a /AST.cpp
parente30d3f8d539882376b29a1fe8f4bf6bcaf8c1762 (diff)
downloaddexon-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.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/AST.cpp b/AST.cpp
index 026aef97..536f04cb 100644
--- a/AST.cpp
+++ b/AST.cpp
@@ -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."));
}
}