]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
cheri: Fix elf/tst-dlmodcount test
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 14 Apr 2022 17:34:26 +0000 (18:34 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 5 Aug 2022 18:45:19 +0000 (19:45 +0100)
switch statement does not work for intptr_t, use a large int type
that's guaranteed to work.

elf/tst-dlmodcount.c

index 8a96803d8589c529fb8b145df506786f858d2fe4..ba9fb171f3f7a5da8c699a4cccf93b77ac8a9a31 100644 (file)
@@ -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)