public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Szabolcs Nagy <nsz@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc/arm/morello/main] cheri: Fix elf/tst-dlmodcount test
Date: Fri,  5 Aug 2022 19:30:00 +0000 (GMT)	[thread overview]
Message-ID: <20220805193000.B36AB3857BB2@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1cb2ecf162dc13dae2d83f4fa5c0bb77abf29f17

commit 1cb2ecf162dc13dae2d83f4fa5c0bb77abf29f17
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date:   Thu Apr 14 18:34:26 2022 +0100

    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:
---
 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 8a96803d85..ba9fb171f3 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)


             reply	other threads:[~2022-08-05 19:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-05 19:30 Szabolcs Nagy [this message]
2022-10-26 15:11 Szabolcs Nagy
2022-10-27 13:50 Szabolcs Nagy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220805193000.B36AB3857BB2@sourceware.org \
    --to=nsz@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).