unity: make it work with -Wconversion

This commit is contained in:
Max Bruckner 2017-02-06 16:05:35 +01:00
parent d19f3ae890
commit 12acc57967

View File

@ -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));