From 7fca8e8ff70e53aeb5459cbe1438d168d5624958 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Wed, 27 Jul 2016 19:01:34 +0930 Subject: [PATCH] Fix warning in ldbuildid.c mingw32 code * ldbuildid.c (generate_build_id): Warning fix. --- ld/ChangeLog | 4 ++++ ld/ldbuildid.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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)) -- 2.30.2