mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-12-16 12:28:39 +08:00
Adjust how decimal tracking handles to avoid warnings.
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