From d0c3f24f4d5a4d96adbc58f3cfe1845e6c3f9126 Mon Sep 17 00:00:00 2001 From: Scott Vokes Date: Fri, 27 Apr 2012 10:31:54 -0400 Subject: [PATCH] If using UNITY_SUPPORT_64, UNITY_POINTER_WIDTH should default to 64 (not 32). Fixes failing test cases on 64-bit OSX: pointers to local variables were being converted to U32s before comparison. --- src/unity_internals.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/unity_internals.h b/src/unity_internals.h index 787b999..76d389d 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -72,8 +72,12 @@ typedef _US64 _U_SINT; //------------------------------------------------------- #ifndef UNITY_POINTER_WIDTH +#ifdef UNITY_SUPPORT_64 +#define UNITY_POINTER_WIDTH (64) +#else #define UNITY_POINTER_WIDTH (32) #endif +#endif /* UNITY_POINTER_WIDTH */ #if (UNITY_POINTER_WIDTH == 32) typedef _UU32 _UP;