From: Szabolcs Nagy Date: Thu, 14 Apr 2022 17:34:26 +0000 (+0100) Subject: cheri: Fix elf/tst-dlmodcount test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a69d7f241ab9f738479e039bd6eecf433868375;p=thirdparty%2Fglibc.git cheri: Fix elf/tst-dlmodcount test switch statement does not work for intptr_t, use a large int type that's guaranteed to work. --- 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)