diff --git a/src/unity.c b/src/unity.c index d1dda41042d220720e4e5185eb977bfa818f07db..00c94127c1a1932ea91ed8463a4cdc3e81eade84 100644 --- a/src/unity.c +++ b/src/unity.c @@ -183,7 +183,7 @@ void UnityPrintNumber(const UNITY_INT number_to_print) { /* A negative number, including MIN negative */ UNITY_OUTPUT_CHAR('-'); - number = (UNITY_UINT)(-number_to_print); + number = -number; } UnityPrintNumberUnsigned(number); }