public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] locale: Fix implicit conversion on collate_finish Date: Fri, 28 Oct 2022 17:40:24 +0000 (GMT) [thread overview] Message-ID: <20221028174024.15D0B385150A@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8b05dbe2d21ff37e192ef7510309a09960d794af commit 8b05dbe2d21ff37e192ef7510309a09960d794af Author: Adhemerval Zanella <adhemerval.zanella@linaro.org> Date: Thu Mar 10 09:54:02 2022 -0300 locale: Fix implicit conversion on collate_finish Clang issues: programs/ld-collate.c:1824:55: error: implicit conversion from 'unsigned long' to 'unsigned int' changes value from 18446744073709551615 to 4294967295 [-Werror,-Wconstant-conversion] collate->undefined.used_in_level = need_undefined ? ~0ul : 0; ~ ^~~~ Diff: --- locale/programs/ld-collate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c index c790623cbc..87b20a2466 100644 --- a/locale/programs/ld-collate.c +++ b/locale/programs/ld-collate.c @@ -1821,7 +1821,7 @@ symbol `%s' has the same encoding as"), (*eptr)->name); /* Now determine whether the UNDEFINED entry is needed and if yes, whether it was defined. */ - collate->undefined.used_in_level = need_undefined ? ~0ul : 0; + collate->undefined.used_in_level = need_undefined ? ~0u : 0; if (collate->undefined.file == NULL) { if (need_undefined)
next reply other threads:[~2022-10-28 17:40 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-10-28 17:40 Adhemerval Zanella [this message] -- strict thread matches above, loose matches on Subject: below -- 2024-04-17 20:05 Adhemerval Zanella 2024-04-02 15:52 Adhemerval Zanella 2024-02-09 17:30 Adhemerval Zanella 2024-02-07 14:05 Adhemerval Zanella 2024-01-29 17:55 Adhemerval Zanella 2023-12-21 18:52 Adhemerval Zanella 2023-09-28 17:50 Adhemerval Zanella 2023-08-30 12:35 Adhemerval Zanella 2023-02-09 19:47 Adhemerval Zanella 2022-10-04 12:58 Adhemerval Zanella
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=20221028174024.15D0B385150A@sourceware.org \ --to=azanella@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: linkBe 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).