aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Kudrin <ikudrin@accesssoftek.com>2016-07-27 19:01:34 +0930
committerAlan Modra <amodra@gmail.com>2016-07-27 19:03:22 +0930
commit7fca8e8ff70e53aeb5459cbe1438d168d5624958 (patch)
tree8d0cc0ab1929819697a8c23ab4f637a5c5970bc3
parent23fcf59aebe1323d7a8584c00699d688d1273828 (diff)
downloadbinutils-7fca8e8ff70e53aeb5459cbe1438d168d5624958.zip
binutils-7fca8e8ff70e53aeb5459cbe1438d168d5624958.tar.gz
binutils-7fca8e8ff70e53aeb5459cbe1438d168d5624958.tar.bz2
Fix warning in ldbuildid.c mingw32 code
* ldbuildid.c (generate_build_id): Warning fix.
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/ldbuildid.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 5765509..96486fb 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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.
diff --git a/ld/ldbuildid.c b/ld/ldbuildid.c
index d2dccc5..76a0b9e 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))