提交 4325773e 编写于 作者: S Shreyas Balakrishna

Fix unsigned integer underflow in UnityAssertEqualIntArray

上级 2c7629a0
......@@ -556,7 +556,7 @@ void UnityAssertEqualIntArray(UNITY_INTERNAL_PTR expected,
if (UnityIsOneArrayNull(expected, actual, lineNumber, msg))
UNITY_FAIL_AND_BAIL;
while (elements--)
while ((elements > 0) && elements--)
{
UNITY_INT expect_val;
UNITY_INT actual_val;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册