diff --git a/src/unity.c b/src/unity.c index 1fcf3f34d2cdec665e6990123c8b0ad2bea182ea..52663642e80cbe4e9868ee9234673eb16912296c 100644 --- a/src/unity.c +++ b/src/unity.c @@ -194,7 +194,7 @@ void UnityPrintNumberHex(const UNITY_UINT number, const char nibbles_to_print) while (nibbles > 0) { nibbles--; - nibble = (number >> (nibbles * 4)) & 0x0F; + nibble = (int)(number >> (nibbles * 4)) & 0x0F; if (nibble <= 9) { UNITY_OUTPUT_CHAR((char)('0' + nibble));