mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-06-25 22:56:35 +08:00
Don't cast a function pointer to a data pointer
That's nonstandard. Instead, convert to an integer. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
6aa9f32124
commit
ee8109541a
@ -54,7 +54,7 @@ void null_pointer_call(const char *name)
|
||||
(void) name;
|
||||
unsigned (*p)(void);
|
||||
mbedtls_platform_zeroize(&p, sizeof(p));
|
||||
mbedtls_printf("%p() -> %u\n", (void *) p, p());
|
||||
mbedtls_printf("%llx() -> %u\n", (unsigned long long) p, p());
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user