diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2020-10-05 13:39:04 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-10-12 08:25:26 +0200 |
commit | 68f1d9592305189a187950cfcddc5ac9f7114100 (patch) | |
tree | 18c9396bb78e1a3586baac6a79aea5c4abbc0b3b | |
parent | cfc2cf54a4176bd510822a913d246303f8b959c6 (diff) | |
download | cmocka-68f1d9592305189a187950cfcddc5ac9f7114100.tar.gz cmocka-68f1d9592305189a187950cfcddc5ac9f7114100.tar.xz cmocka-68f1d9592305189a187950cfcddc5ac9f7114100.zip |
include: Rename to cast_to_uintptr_type()
-rw-r--r-- | include/cmocka.h | 4 |
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__ |