Fix cast from pointer to integer of different size

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2023-11-03 10:31:56 +01:00
parent ee8109541a
commit a1dfa14c06

View file

@ -54,7 +54,7 @@ void null_pointer_call(const char *name)
(void) name; (void) name;
unsigned (*p)(void); unsigned (*p)(void);
mbedtls_platform_zeroize(&p, sizeof(p)); mbedtls_platform_zeroize(&p, sizeof(p));
mbedtls_printf("%llx() -> %u\n", (unsigned long long) p, p()); mbedtls_printf("%llx() -> %u\n", (unsigned long long) (uintptr_t) p, p());
} }