]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/tracefile-tfile.c
Add casts to memory allocation related calls
[thirdparty/binutils-gdb.git] / gdb / tracefile-tfile.c
index 8cc36b82695e82f56a5f3e26421482fdb4b66d83..68ff5b14b79ac0cf7ed81fd71ff9a75df3264a91 100644 (file)
@@ -805,7 +805,7 @@ tfile_fetch_registers (struct target_ops *ops,
 
   if (traceframe_find_block_type ('R', 0) >= 0)
     {
-      gdb_byte *regs = alloca (trace_regblock_size);
+      gdb_byte *regs = (gdb_byte *) alloca (trace_regblock_size);
 
       tfile_read (regs, trace_regblock_size);