1
0
mirror of https://github.com/ThrowTheSwitch/Unity synced 2025-05-29 03:29:34 -04:00

Merge pull request from FSMaxB/fix-wconversion

Fix gcc warning with ubsan and -Wconversion
This commit is contained in:
Mark VanderVoord 2017-03-01 12:45:40 -05:00 committed by GitHub
commit 1f522558a6

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