Don't round so aggressively.

This commit is contained in:
JoelKatz
2013-03-10 21:36:00 -07:00
parent a85b38e8e3
commit 466ac77527

View File

@@ -30,8 +30,8 @@ static void canonicalizeRound(bool isNative, uint64& value, int& offset, bool ro
{
if (roundUp)
value += 9;
else
value -= 9;
// else
// value -= 9;
value /= 10;
++offset;
}
@@ -39,8 +39,8 @@ static void canonicalizeRound(bool isNative, uint64& value, int& offset, bool ro
{
if (roundUp)
value += 9;
else
value -= 9;
// else
// value -= 9;
value /= 10;
++offset;
}