diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-04-14 18:34:26 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-08-05 19:45:19 +0100 |
commit | 1cb2ecf162dc13dae2d83f4fa5c0bb77abf29f17 (patch) | |
tree | 44f302ca6a3b227ffd9b41dc41bbb147b896949c /elf | |
parent | a87b3fcbb33e59dd9dc00d1aff88c0d80352f488 (diff) | |
download | glibc-1cb2ecf162dc13dae2d83f4fa5c0bb77abf29f17.zip glibc-1cb2ecf162dc13dae2d83f4fa5c0bb77abf29f17.tar.gz glibc-1cb2ecf162dc13dae2d83f4fa5c0bb77abf29f17.tar.bz2 |
cheri: Fix elf/tst-dlmodcount test
switch statement does not work for intptr_t, use a large int type
that's guaranteed to work.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/tst-dlmodcount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/tst-dlmodcount.c b/elf/tst-dlmodcount.c index 8a96803..ba9fb17 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) |