From 4c9e06e3560970a5066e4d95a0e8225addedbb93 Mon Sep 17 00:00:00 2001
From: Nimrod Zimerman <zimerman@fastmail.fm>
Date: Wed, 15 Jul 2015 11:52:29 +0300
Subject: [PATCH] Use UNITY_PTR_ATTRIBUTE() in one place where it was
 (accidentally?) not used.

This eliminates a compiler warning for certain compilers.
---
 src/unity.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/unity.c b/src/unity.c
index b79f27a..a318883 100644
--- a/src/unity.c
+++ b/src/unity.c
@@ -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);
         }
         /////////////////////////////////////