Fix warning in ldbuildid.c mingw32 code
authorIgor Kudrin <ikudrin@accesssoftek.com>
Wed, 27 Jul 2016 09:31:34 +0000 (19:01 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 27 Jul 2016 09:33:22 +0000 (19:03 +0930)
* ldbuildid.c (generate_build_id): Warning fix.

ld/ChangeLog
ld/ldbuildid.c

index 5765509749313985f1c58888280416033b20b971..96486fb12e1b09b8d8d34364be8f4a4ce24d1105 100644 (file)
@@ -1,3 +1,7 @@
+2016-07-27  Igor Kudrin  <ikudrin@accesssoftek.com>
+
+       * ldbuildid.c (generate_build_id): Warning fix.
+
 2016-07-26  Maciej W. Rozycki  <macro@imgtec.com>
 
        * testsuite/ld-mips-elf/compressed-plt-1.s: Add branch support.
index d2dccc5c30be159579bc44cc9d1b8f2c6d72d771..76a0b9e624bc2ae1c605ee636abb488239e565aa 100644 (file)
@@ -152,7 +152,8 @@ generate_build_id (bfd *abfd,
          return FALSE;
        }
       FreeLibrary (rpc_library);
-      memcpy (id_bits, &uuid, size < sizeof (UUID) ? size : sizeof (UUID));
+      memcpy (id_bits, &uuid,
+             (size_t) size < sizeof (UUID) ? (size_t) size : sizeof (UUID));
 #endif /* __MINGW32__ */
     }
   else if (strneq (style, "0x", 2))
This page took 0.035024 seconds and 4 git commands to generate.