summaryrefslogtreecommitdiff
path: root/tests/lib/imd-test.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2024-10-28 08:18:59 +0100
committerElyes Haouas <ehaouas@noos.fr>2024-10-29 01:41:41 +0000
commit686b36bab86f49a796f07aaa9d73a9305461969a (patch)
treef7d14b72f9cd684bb7c713a8050424e7f9c09229 /tests/lib/imd-test.c
parent9dc9ef3082714b98ed14f37d6e82f96b02ef5946 (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-test.c')
-rw-r--r--tests/lib/imd-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/imd-test.c b/tests/lib/imd-test.c
index de42e08e3c..b95b7424a7 100644
--- a/tests/lib/imd-test.c
+++ b/tests/lib/imd-test.c
@@ -232,7 +232,7 @@ static void test_imd_recover(void **state)
const struct imd_entry *lg_entry;
/* Fail when the limit for lg was not set. */
- imd.lg.limit = (uintptr_t)NULL;
+ imd.lg.limit = 0;
assert_int_equal(-1, imd_recover(&imd));
/* Set the limit for lg. */