diff --git a/src/unity.c b/src/unity.c index 42bc47a..4888962 100644 --- a/src/unity.c +++ b/src/unity.c @@ -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); }