diff --git a/include/xrpl/basics/Number.h b/include/xrpl/basics/Number.h index 9c137b08fa..79c9308139 100644 --- a/include/xrpl/basics/Number.h +++ b/include/xrpl/basics/Number.h @@ -525,10 +525,13 @@ public: return !lneg; // If equal signs and exponents, compare mantissas. - if (lneg) + if constexpr (std::is_unsigned_v) { - // If negative, the operator is reversed. - return l.mantissa_ > r.mantissa_; + if (lneg) + { + // If negative, the operator is reversed. + return l.mantissa_ < r.mantissa_; + } } return l.mantissa_ < r.mantissa_;