mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-20 14:07:07 +08:00
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:
@ -72,8 +72,12 @@ typedef _US64 _U_SINT;
|
|||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
|
|
||||||
#ifndef UNITY_POINTER_WIDTH
|
#ifndef UNITY_POINTER_WIDTH
|
||||||
|
#ifdef UNITY_SUPPORT_64
|
||||||
|
#define UNITY_POINTER_WIDTH (64)
|
||||||
|
#else
|
||||||
#define UNITY_POINTER_WIDTH (32)
|
#define UNITY_POINTER_WIDTH (32)
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* UNITY_POINTER_WIDTH */
|
||||||
|
|
||||||
#if (UNITY_POINTER_WIDTH == 32)
|
#if (UNITY_POINTER_WIDTH == 32)
|
||||||
typedef _UU32 _UP;
|
typedef _UU32 _UP;
|
||||||
|
Reference in New Issue
Block a user