diff --git a/src/unity.c b/src/unity.c index bd9aa14f36cef242a6cacd8c671ea42a9632738c..be99a54fc7562ede29ab0bf2d2fdd1241f23acd3 100644 --- a/src/unity.c +++ b/src/unity.c @@ -981,7 +981,7 @@ void UnityAssertEqualStringArray( const char** expected, if (num_elements > 1) { UnityPrint(UnityStrElement); - UnityPrintNumberByStyle((num_elements - j - 1), UNITY_DISPLAY_STYLE_UINT); + UnityPrintNumberByStyle((j), UNITY_DISPLAY_STYLE_UINT); } UnityPrintExpectedAndActualStrings((const char*)(expected[j]), (const char*)(actual[j])); UnityAddMsgIfSpecified(msg);