From 08acbcd839cd0a412f9c0a0828fb476364e86c23 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 12 Oct 2012 19:58:41 -0700 Subject: [PATCH] Fix the sense. --- src/Amount.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Amount.cpp b/src/Amount.cpp index 9a12ea7e29..f564e071fd 100644 --- a/src/Amount.cpp +++ b/src/Amount.cpp @@ -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; }