aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/m2-lang.c')
-rw-r--r--gdb/m2-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index b0a9e27..f83c622 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -255,7 +255,7 @@ evaluate_subexp_modula2 (struct type *expect_type, struct expression *exp,
if (value_type (arg1) != type)
arg1 = value_cast (type, arg1);
- type = check_typedef (value_type (arg1));
+ check_typedef (value_type (arg1));
return value_ind (value_ptradd (arg1, value_as_long (arg2)));
}
else