From 4ca1c6d97f61769e364e4ceef94f19d150770cc3 Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Thu, 4 Jun 2026 12:28:21 -0400 Subject: [PATCH] Improve readability --- include/xrpl/basics/Number.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 */