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.
This commit is contained in:
Scott Vokes
2012-04-27 10:31:54 -04:00
parent 17663feed2
commit d0c3f24f4d

View File

@ -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;