diff --git a/include/stellar/utils/fraction.hpp b/include/stellar/utils/fraction.hpp index 1593b608f..7744467f5 100644 --- a/include/stellar/utils/fraction.hpp +++ b/include/stellar/utils/fraction.hpp @@ -88,7 +88,7 @@ struct fraction static fraction from_double_with_limit(long double value, uint32_t const precision_limit) { // Applying a lower bound to the error rate because values close to 0 increase runtime dramatically - if (abs(value) < (1.0 / (precision_limit * 1.05))) + if (std::abs(value) < (1.0 / (precision_limit * 1.05))) { return fraction(precision_limit); }