mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix crash in throw.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user