Improve readability

This commit is contained in:
Ed Hennis
2026-06-04 12:28:21 -04:00
parent 09a8589182
commit 1af5bfc2bf

View File

@@ -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 */