Fix a case that doesn't canonicalize to zero.

This commit is contained in:
JoelKatz
2013-07-01 08:42:30 -07:00
parent c645901d58
commit 6514fa0f8e

View File

@@ -436,7 +436,7 @@ void STAmount::canonicalize ()
++mOffset; ++mOffset;
} }
if (mOffset < cMinOffset) if ((mOffset < cMinOffset) || (mValue < vMinValue))
{ {
mValue = 0; mValue = 0;
mOffset = 0; mOffset = 0;