]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix signedness comparison warning in elfcore_grok_win32pstatus()
authorJon Turney <jon.turney@dronecode.org.uk>
Wed, 12 Aug 2020 15:34:47 +0000 (16:34 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Wed, 12 Aug 2020 15:39:25 +0000 (16:39 +0100)
bfd/ChangeLog:

2020-08-12  Jon Turney  <jon.turney@dronecode.org.uk>

* elf.c (elfcore_grok_win32pstatus): Use unsigned int for
win32pstatus note type to avoid signedness comparison warning.

bfd/ChangeLog
bfd/elf.c

index 5539e980d6d78fdb767a3a0430f75d668acaf9e7..a2342588e80888a3ef643d990c29e526083add05 100644 (file)
@@ -1,3 +1,8 @@
+2020-08-12  Jon Turney  <jon.turney@dronecode.org.uk>
+
+       * elf.c (elfcore_grok_win32pstatus): Use unsigned int for
+       win32pstatus note type to avoid signedness comparison warning.
+
 2020-07-21  Jon Turney  <jon.turney@dronecode.org.uk>
 
        * elf.c (elfcore_grok_win32pstatus): Warn on malformed
index e8c457cd5d52e9b1f77f3ac9bcee7cf2c376938e..54c72043418b04770f51c18252a14af0e23c52f3 100644 (file)
--- 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;