mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
Merge pull request #267 from FSMaxB/fix-wconversion
Fix gcc warning with ubsan and -Wconversion
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user