diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2024-10-28 08:18:59 +0100 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2024-10-29 01:41:41 +0000 |
commit | 686b36bab86f49a796f07aaa9d73a9305461969a (patch) | |
tree | f7d14b72f9cd684bb7c713a8050424e7f9c09229 /tests/lib/imd_cbmem-test.c | |
parent | 9dc9ef3082714b98ed14f37d6e82f96b02ef5946 (diff) |
tree: Fix cast an object of type 'nullptr_t' to 'uintptr_t' error
This to fix the error when using C23:
cannot cast an object of type 'nullptr_t' to 'uintptr_t' (aka 'unsigned long')
return (uintptr_t)NULL;
^
Change-Id: Ibdc8794513a508fc61a5046692f854183c36b781
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/84893
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Jakub Czapiga <czapiga@google.com>
Diffstat (limited to 'tests/lib/imd_cbmem-test.c')
-rw-r--r-- | tests/lib/imd_cbmem-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/imd_cbmem-test.c b/tests/lib/imd_cbmem-test.c index 6c0ba5ad41..b1cca04742 100644 --- a/tests/lib/imd_cbmem-test.c +++ b/tests/lib/imd_cbmem-test.c @@ -21,9 +21,9 @@ static void reset_imd(void) { - imd.lg.limit = (uintptr_t)NULL; + imd.lg.limit = 0; imd.lg.r = NULL; - imd.sm.limit = (uintptr_t)NULL; + imd.sm.limit = 0; imd.sm.r = NULL; cbmem_initialized = 0; |