Add casts to memory allocation related calls
[deliverable/binutils-gdb.git] / gdb / s390-linux-tdep.c
index 1e20c92b5482dbc30163b84fca0b9457bc2d11e4..8d277ac3f525b35af081bc0cc6f0a5f843daf17d 100644 (file)
@@ -1600,7 +1600,7 @@ s390_displaced_step_copy_insn (struct gdbarch *gdbarch,
                               struct regcache *regs)
 {
   size_t len = gdbarch_max_insn_length (gdbarch);
-  gdb_byte *buf = xmalloc (len);
+  gdb_byte *buf = (gdb_byte *) xmalloc (len);
   struct cleanup *old_chain = make_cleanup (xfree, buf);
 
   read_memory (from, buf, len);
This page took 0.02502 seconds and 4 git commands to generate.