From 686b36bab86f49a796f07aaa9d73a9305461969a Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Mon, 28 Oct 2024 08:18:59 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/84893 Tested-by: build bot (Jenkins) Reviewed-by: Jakub Czapiga --- tests/lib/imd_cbmem-test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lib/imd_cbmem-test.c') 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; -- cgit v1.2.3