提交 1f522558 编写于 作者: M Mark VanderVoord 提交者: GitHub

Merge pull request #267 from FSMaxB/fix-wconversion

Fix gcc warning with ubsan and -Wconversion
......@@ -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));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册