aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-02-15 01:25:04 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-03-15 21:06:27 +0800
commitdfc8f890bf706d844e5af3b8ca10268ce630bdd7 (patch)
tree2a79f97bb3790a3cddcd39bdbf6cdafc12e84f7a
parent1083e6da683b9624b1bb6cc2b3cc3831504dfc57 (diff)
downloaddexon-solidity-dfc8f890bf706d844e5af3b8ca10268ce630bdd7.tar.gz
dexon-solidity-dfc8f890bf706d844e5af3b8ca10268ce630bdd7.tar.zst
dexon-solidity-dfc8f890bf706d844e5af3b8ca10268ce630bdd7.zip
Support older version of boost
-rw-r--r--libsolidity/ast/Types.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp
index 39760353..f1b47ebe 100644
--- a/libsolidity/ast/Types.cpp
+++ b/libsolidity/ast/Types.cpp
@@ -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),