mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-08-25 12:39:58 +00:00
Fix unsigned integer underflow in UnityAssertEqualIntArray
This commit is contained in:
+1
-1
@@ -556,7 +556,7 @@ void UnityAssertEqualIntArray(UNITY_INTERNAL_PTR expected,
|
|||||||
if (UnityIsOneArrayNull(expected, actual, lineNumber, msg))
|
if (UnityIsOneArrayNull(expected, actual, lineNumber, msg))
|
||||||
UNITY_FAIL_AND_BAIL;
|
UNITY_FAIL_AND_BAIL;
|
||||||
|
|
||||||
while (elements--)
|
while ((elements > 0) && elements--)
|
||||||
{
|
{
|
||||||
UNITY_INT expect_val;
|
UNITY_INT expect_val;
|
||||||
UNITY_INT actual_val;
|
UNITY_INT actual_val;
|
||||||
|
|||||||
Reference in New Issue
Block a user