mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-26 01:41:35 +01:00
Get rid of conversion warning when using UNITY_FLOAT_VERBOSE with doubles
Change the parameter of UnityPrintFloat from float to double (_UD) The call to snprintf uses implict default promotion to a double anyway
This commit is contained in:
@@ -257,7 +257,7 @@ void UnityPrintMask(const _U_UINT mask, const _U_UINT number)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
void UnityPrintFloat(_UF number)
|
||||
void UnityPrintFloat(_UD number)
|
||||
{
|
||||
char TempBuffer[UNITY_VERBOSE_NUMBER_MAX_LENGTH + 1];
|
||||
snprintf(TempBuffer, sizeof(TempBuffer), "%.6f", number);
|
||||
|
||||
Reference in New Issue
Block a user