diff --git a/src/unity.c b/src/unity.c index 32d81fe67b38f5653521c26544bb0d44f0fdd100..ef7d4c268a3f24e16b92f287c218d4e6d9154ed6 100644 --- a/src/unity.c +++ b/src/unity.c @@ -131,7 +131,7 @@ void UnityPrintNumber(const _U_SINT number_to_print) { //The largest representable negative number UNITY_OUTPUT_CHAR('-'); - number = (_U_UINT)number_to_print; + number = (1ul << (UNITY_LONG_WIDTH-1)); } else if (number_to_print < 0) {