aboutsummaryrefslogtreecommitdiff
path: root/gdb/ch-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ch-lang.c')
-rw-r--r--gdb/ch-lang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ch-lang.c b/gdb/ch-lang.c
index ec3a76e..f65e635 100644
--- a/gdb/ch-lang.c
+++ b/gdb/ch-lang.c
@@ -536,7 +536,8 @@ evaluate_subexp_chill (struct type *expect_type,
/* Allocate arg vector, including space for the function to be
called in argvec[0] and a terminating NULL */
- argvec = (value_ptr *) alloca (sizeof (value_ptr) * (nargs + 2));
+ argvec = (struct value **) alloca (sizeof (struct value *)
+ * (nargs + 2));
argvec[0] = arg1;
tem = 1;
for (; tem <= nargs && tem <= TYPE_NFIELDS (type); tem++)