aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/cmocka.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cmocka.h b/include/cmocka.h
index 6f61673..532eebc 100644
--- a/include/cmocka.h
+++ b/include/cmocka.h
@@ -62,12 +62,12 @@ int __stdcall IsDebuggerPresent();
((uintmax_t)(value))
/* Perform an unsigned cast to uintptr_t. */
-#define cast_to_pointer_integral_type(value) \
+#define cast_to_uintptr_type(value) \
((uintptr_t)(value))
/* Perform a cast of a pointer to uintmax_t */
#define cast_ptr_to_largest_integral_type(value) \
-cast_to_uintmax_type(cast_to_pointer_integral_type(value))
+ cast_to_uintmax_type(cast_to_uintptr_type(value))
/* GCC have printf type attribute check. */
#ifdef __GNUC__