Fix crash in throw.

This commit is contained in:
chriseth
2016-10-24 14:32:49 +02:00
parent cb1fcaf6f6
commit 2b00804d1d
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -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,