mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 17:56:49 +00:00
Improve readability
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user