Fix cast from pointer to integer of different size

Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
Gilles Peskine
2023-11-06 20:33:19 +01:00
parent ee8109541a
commit a1dfa14c06
+1 -1
View File
@@ -54,7 +54,7 @@ void null_pointer_call(const char *name)
(void) name;
unsigned (*p)(void);
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());
}