mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-23 16:19:07 +08:00
Merge pull request #353 from kykrueger/issue-#352-uninitialized-value-warning
Issue #352 uninitialized value warning
This commit is contained in:
@ -296,7 +296,7 @@ void UnityPrintFloat(const UNITY_DOUBLE input_number)
|
|||||||
int exponent = 0;
|
int exponent = 0;
|
||||||
int decimals, digits;
|
int decimals, digits;
|
||||||
UNITY_INT32 n;
|
UNITY_INT32 n;
|
||||||
char buf[16];
|
char buf[16] = {0};
|
||||||
|
|
||||||
/* scale up or down by powers of 10 */
|
/* scale up or down by powers of 10 */
|
||||||
while (number < 100000.0f / 1e6f) { number *= 1e6f; exponent -= 6; }
|
while (number < 100000.0f / 1e6f) { number *= 1e6f; exponent -= 6; }
|
||||||
|
Reference in New Issue
Block a user