]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/jv-typeprint.c
Add casts to memory allocation related calls
[thirdparty/binutils-gdb.git] / gdb / jv-typeprint.c
index 3ea81c3b171abaed046891fd049976ee30e71921..441f313f5705f35c85c8d564b6469730b0ec7851 100644 (file)
@@ -233,7 +233,7 @@ java_type_print_base (struct type *type, struct ui_file *stream, int show,
                  p = strrchr (real_physname, ')');
                  gdb_assert (p != NULL);
                  ++p;   /* Keep the trailing ')'.  */
-                 physname = alloca (p - real_physname + 1);
+                 physname = (char *) alloca (p - real_physname + 1);
                  memcpy (physname, real_physname, p - real_physname);
                  physname[p - real_physname] = '\0';