From 12acc57967aef0c859e2a0a877b7a1530faad068 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Mon, 6 Feb 2017 16:05:35 +0100 Subject: [PATCH] unity: make it work with -Wconversion --- tests/unity/src/unity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unity/src/unity.c b/tests/unity/src/unity.c index 54a3452..ece0d9b 100644 --- a/tests/unity/src/unity.c +++ b/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 = (number >> (nibbles * 4)) & 0x0F; + nibble = (int)(number >> (nibbles * 4)) & 0x0F; if (nibble <= 9) { UNITY_OUTPUT_CHAR((char)('0' + nibble));