diff options
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/ldbuildid.c | 3 |
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)) |