]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/p-valprint.c
Add casts to memory allocation related calls
[thirdparty/binutils-gdb.git] / gdb / p-valprint.c
index 0ceddd1faa3f6c146a0c25651f4e8ce189a65048..4e1c812c41c7c169a82885c74b9230d7056d4188 100644 (file)
@@ -768,7 +768,7 @@ pascal_object_print_value (struct type *type, const gdb_byte *valaddr,
              gdb_byte *buf;
              struct cleanup *back_to;
 
-             buf = xmalloc (TYPE_LENGTH (baseclass));
+             buf = (gdb_byte *) xmalloc (TYPE_LENGTH (baseclass));
              back_to = make_cleanup (xfree, buf);
 
              base_valaddr = buf;