From: Jon Turney Date: Wed, 12 Aug 2020 15:34:47 +0000 (+0100) Subject: Fix signedness comparison warning in elfcore_grok_win32pstatus() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fef937354881d1de567b2c0df28718acd8198df;p=binutils-gdb.git 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. --- 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;