aboutsummaryrefslogtreecommitdiff
path: root/gdb/go-exp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/go-exp.y')
-rw-r--r--gdb/go-exp.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/go-exp.y b/gdb/go-exp.y
index f786ec2..f9ae3ea 100644
--- a/gdb/go-exp.y
+++ b/gdb/go-exp.y
@@ -475,7 +475,7 @@ exp : SIZEOF_KEYWORD '(' type ')' %prec UNARY
= parse_type (pstate)->builtin_unsigned_int;
$3 = check_typedef ($3);
pstate->push_new<long_const_operation>
- (size_type, (LONGEST) TYPE_LENGTH ($3));
+ (size_type, (LONGEST) $3->length ());
}
;