From dfc8f890bf706d844e5af3b8ca10268ce630bdd7 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 14 Feb 2017 17:25:04 +0000 Subject: Support older version of boost --- libsolidity/ast/Types.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libsolidity/ast') 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 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() + exp.convert_to() ); + } else x *= boost::multiprecision::pow( bigint(10), -- cgit