mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix a case that doesn't canonicalize to zero.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user