Przeglądaj źródła

Revert "unity: make it work with -Wconversion"

This reverts commit 12acc57967aef0c859e2a0a877b7a1530faad068.
Max Bruckner 8 lat temu
rodzic
commit
1e0bd24f2c
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tests/unity/src/unity.c

+ 1 - 1
tests/unity/src/unity.c

@@ -194,7 +194,7 @@ void UnityPrintNumberHex(const UNITY_UINT number, const char nibbles_to_print)
     while (nibbles > 0)
     {
         nibbles--;
-        nibble = (int)(number >> (nibbles * 4)) & 0x0F;
+        nibble = (number >> (nibbles * 4)) & 0x0F;
         if (nibble <= 9)
         {
             UNITY_OUTPUT_CHAR((char)('0' + nibble));