mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Support older version of boost
This commit is contained in:
parent
1083e6da68
commit
dfc8f890bf
@ -595,10 +595,13 @@ tuple<bool, rational> RationalNumberType::isValidLiteral(Literal const& _literal
|
||||
|
||||
x = bigint(string(_literal.value().begin(), expPoint));
|
||||
if (exp < 0)
|
||||
{
|
||||
exp *= -1;
|
||||
x /= boost::multiprecision::pow(
|
||||
bigint(10),
|
||||
abs(exp).convert_to<int32_t>()
|
||||
exp.convert_to<int32_t>()
|
||||
);
|
||||
}
|
||||
else
|
||||
x *= boost::multiprecision::pow(
|
||||
bigint(10),
|
||||
|
Loading…
Reference in New Issue
Block a user