未验证 提交 49ffac33 编写于 作者: M Mark VanderVoord 提交者: GitHub

Merge pull request #397 from AlexanderBrevig/fix_unary_minus_on_unsigned_warning

use unary minus on the incoming int instead of the casted uint
......@@ -321,7 +321,7 @@ void UnityPrintNumber(const UNITY_INT number_to_print)
{
/* A negative number, including MIN negative */
UNITY_OUTPUT_CHAR('-');
number = -number;
number = (UNITY_UINT)-number_to_print;
}
UnityPrintNumberUnsigned(number);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册