Fix cast from pointer to integer of different size
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
ee8109541a
commit
a1dfa14c06
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue