From 1cb2ecf162dc13dae2d83f4fa5c0bb77abf29f17 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Thu, 14 Apr 2022 18:34:26 +0100 Subject: [PATCH] cheri: Fix elf/tst-dlmodcount test switch statement does not work for intptr_t, use a large int type that's guaranteed to work. --- elf/tst-dlmodcount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elf/tst-dlmodcount.c b/elf/tst-dlmodcount.c index 8a96803d858..ba9fb171f3f 100644 --- a/elf/tst-dlmodcount.c +++ b/elf/tst-dlmodcount.c @@ -30,7 +30,7 @@ static int callback (struct dl_phdr_info *info, size_t size, void *ptr) { static int last_adds = 0, last_subs = 0; - intptr_t cmd = (intptr_t) ptr; + unsigned long cmd = (intptr_t) ptr; printf (" size = %Zu\n", size); if (size < (offsetof (struct dl_phdr_info, dlpi_subs) -- 2.47.2