aboutsummaryrefslogtreecommitdiff
path: root/ld/ldbuildid.c
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 /ld/ldbuildid.c
parent23fcf59aebe1323d7a8584c00699d688d1273828 (diff)
downloadgdb-7fca8e8ff70e53aeb5459cbe1438d168d5624958.zip
gdb-7fca8e8ff70e53aeb5459cbe1438d168d5624958.tar.gz
gdb-7fca8e8ff70e53aeb5459cbe1438d168d5624958.tar.bz2
Fix warning in ldbuildid.c mingw32 code
* ldbuildid.c (generate_build_id): Warning fix.
Diffstat (limited to 'ld/ldbuildid.c')
-rw-r--r--ld/ldbuildid.c3
1 files changed, 2 insertions, 1 deletions
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))