aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2020-10-05 13:39:04 +0200
committerAndreas Schneider <asn@cryptomilk.org>2020-10-12 08:25:26 +0200
commit68f1d9592305189a187950cfcddc5ac9f7114100 (patch)
tree18c9396bb78e1a3586baac6a79aea5c4abbc0b3b
parentcfc2cf54a4176bd510822a913d246303f8b959c6 (diff)
downloadcmocka-68f1d9592305189a187950cfcddc5ac9f7114100.tar.gz
cmocka-68f1d9592305189a187950cfcddc5ac9f7114100.tar.xz
cmocka-68f1d9592305189a187950cfcddc5ac9f7114100.zip
include: Rename to cast_to_uintptr_type()
-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__