1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 08:25:58 +01:00

Merge pull request #397 from AlexanderBrevig/fix_unary_minus_on_unsigned_warning

use unary minus on the incoming int instead of the casted uint
This commit is contained in:
Mark VanderVoord
2019-03-11 22:35:02 -04:00
committed by GitHub

View File

@@ -321,7 +321,7 @@ void UnityPrintNumber(const UNITY_INT number_to_print)
{
/* A negative number, including MIN negative */
UNITY_OUTPUT_CHAR('-');
number = -number;
number = (UNITY_UINT)-number_to_print;
}
UnityPrintNumberUnsigned(number);
}