From: Igor Kudrin Date: Wed, 27 Jul 2016 09:31:34 +0000 (+0930) Subject: Fix warning in ldbuildid.c mingw32 code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fca8e8ff70e53aeb5459cbe1438d168d5624958;p=binutils-gdb.git Fix warning in ldbuildid.c mingw32 code * ldbuildid.c (generate_build_id): Warning fix. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 57655097493..96486fb12e1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2016-07-27 Igor Kudrin + + * ldbuildid.c (generate_build_id): Warning fix. + 2016-07-26 Maciej W. Rozycki * testsuite/ld-mips-elf/compressed-plt-1.s: Add branch support. diff --git a/ld/ldbuildid.c b/ld/ldbuildid.c index d2dccc5c30b..76a0b9e624b 100644 --- a/ld/ldbuildid.c +++ b/ld/ldbuildid.c @@ -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))