From 2fef937354881d1de567b2c0df28718acd8198df Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Wed, 12 Aug 2020 16:34:47 +0100 Subject: [PATCH] Fix signedness comparison warning in elfcore_grok_win32pstatus() bfd/ChangeLog: 2020-08-12 Jon Turney * elf.c (elfcore_grok_win32pstatus): Use unsigned int for win32pstatus note type to avoid signedness comparison warning. --- bfd/ChangeLog | 5 +++++ bfd/elf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5539e980d6d..a2342588e80 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2020-08-12 Jon Turney + + * elf.c (elfcore_grok_win32pstatus): Use unsigned int for + win32pstatus note type to avoid signedness comparison warning. + 2020-07-21 Jon Turney * elf.c (elfcore_grok_win32pstatus): Warn on malformed diff --git a/bfd/elf.c b/bfd/elf.c index e8c457cd5d5..54c72043418 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -10142,7 +10142,7 @@ elfcore_grok_win32pstatus (bfd *abfd, Elf_Internal_Note *note) size_t len; size_t name_size; asection *sect; - int type; + unsigned int type; int is_active_thread; bfd_vma base_addr; -- 2.30.2