diff --git a/include/xrpl/basics/Number.h b/include/xrpl/basics/Number.h index a93f7f8ad3..98df054ce1 100644 --- a/include/xrpl/basics/Number.h +++ b/include/xrpl/basics/Number.h @@ -434,8 +434,12 @@ public: if (l.exponent_ < r.exponent_) return !lneg; - // If equal signs and exponents, compare mantissas. If negative, the operator is reversed. - return lneg ? l.mantissa_ > r.mantissa_ : l.mantissa_ < r.mantissa_; + // If equal signs and exponents, compare mantissas. + if (lneg) + // If negative, the operator is reversed. + return l.mantissa_ > r.mantissa_; + + return l.mantissa_ < r.mantissa_; } /** Return the sign of the amount */