]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/btrace.c
Add casts to memory allocation related calls
[thirdparty/binutils-gdb.git] / gdb / btrace.c
index e205ea867c4e318009f0a36a0b197452e32c90dc..4292dc7784d8c95a303ce4d0530f7c0ed5e6b4cc 100644 (file)
@@ -1441,7 +1441,7 @@ parse_xml_raw (struct gdb_xml_parser *parser, const char *body_text,
 
   size = len / 2;
 
-  bin = data = xmalloc (size);
+  bin = data = (gdb_byte *) xmalloc (size);
   cleanup = make_cleanup (xfree, data);
 
   /* We use hex encoding - see common/rsp-low.h.  */