aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/ast
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-10-20 17:33:17 +0800
committerchriseth <c@ethdev.com>2016-10-24 20:32:49 +0800
commit2b00804d1df00fbd6ce26a9e34e8d2f24107988c (patch)
treec8585557670858eeedc22888883c59e01234f042 /libsolidity/ast
parentcb1fcaf6f65608d6528753f1a998c2cf9f67baab (diff)
downloaddexon-solidity-2b00804d1df00fbd6ce26a9e34e8d2f24107988c.tar.gz
dexon-solidity-2b00804d1df00fbd6ce26a9e34e8d2f24107988c.tar.zst
dexon-solidity-2b00804d1df00fbd6ce26a9e34e8d2f24107988c.zip
Fix crash in throw.
Diffstat (limited to 'libsolidity/ast')
-rw-r--r--libsolidity/ast/Types.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index a412d421..88bdee9f 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -483,7 +483,7 @@ tuple<bool, rational> RationalNumberType::isValidLiteral(Literal const& _literal
!all_of(radixPoint + 1, _literal.value().end(), ::isdigit) ||
!all_of(_literal.value().begin(), radixPoint, ::isdigit)
)
- throw;
+ return make_tuple(false, rational(0));
//Only decimal notation allowed here, leading zeros would switch to octal.
auto fractionalBegin = find_if_not(
radixPoint + 1,