mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix the sense.
This commit is contained in:
@@ -487,11 +487,11 @@ int STAmount::compare(const STAmount& a) const
|
||||
if (!mValue) return a.mValue ? 1 : 0;
|
||||
if (!a.mValue) return 1;
|
||||
|
||||
if (mOffset > a.mOffset) return mIsNegative ? 1 : -1;
|
||||
if (mOffset < a.mOffset) return mIsNegative ? -1 : 1;
|
||||
if (mOffset > a.mOffset) return mIsNegative ? -1 : 1;
|
||||
if (mOffset < a.mOffset) return mIsNegative ? 1 : -1;
|
||||
|
||||
if (mValue > a.mValue) return mIsNegative ? 1 : -1;
|
||||
if (mValue < a.mValue) return mIsNegative ? -1 : 1;
|
||||
if (mValue > a.mValue) return mIsNegative ? -1 : 1;
|
||||
if (mValue < a.mValue) return mIsNegative ? 1 : -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user