Add casts to memory allocation related calls
[deliverable/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';
 
This page took 0.026382 seconds and 4 git commands to generate.