1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-25 09:21:36 +01:00

Merge pull request #124 from trianglee/missing_unity_ptr_attribute

Use UNITY_PTR_ATTRIBUTE() in one place where it was (accidentally?) not used.
This commit is contained in:
Mark VanderVoord
2015-07-15 10:23:54 -04:00

View File

@@ -1177,8 +1177,8 @@ void UnityAssertEqualMemory( UNITY_PTR_ATTRIBUTE const void* expected,
UnityAddMsgIfSpecified(msg);
UNITY_FAIL_AND_BAIL;
}
ptr_exp += 1;
ptr_act += 1;
ptr_exp = (UNITY_PTR_ATTRIBUTE const void*)((_UP)ptr_exp + 1);
ptr_act = (UNITY_PTR_ATTRIBUTE const void*)((_UP)ptr_act + 1);
}
/////////////////////////////////////