mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-12-17 05:22:22 +08:00
Merge remote-tracking branch 'upstream/master' into more-float
# Conflicts: # README.md # docs/UnityAssertionsReference.md
This commit is contained in:
@@ -445,7 +445,7 @@ void UnityPrintFloat(const UNITY_DOUBLE input_number)
|
||||
|
||||
/* build up buffer in reverse order */
|
||||
digits = 0;
|
||||
while ((n != 0) || (digits < (decimals + 1)))
|
||||
while ((n != 0) || (digits <= decimals))
|
||||
{
|
||||
buf[digits++] = (char)('0' + n % 10);
|
||||
n /= 10;
|
||||
|
||||
Reference in New Issue
Block a user