aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index abd5b67..5a3569a 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -957,7 +957,7 @@ exp : SIZEOF '(' type ')' %prec UNARY
type = check_typedef (type->target_type ());
pstate->push_new<long_const_operation>
- (int_type, TYPE_LENGTH (type));
+ (int_type, type->length ());
}
;