summaryrefslogtreecommitdiff
path: root/gdb/score-tdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/score-tdep.c')
-rw-r--r--gdb/score-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c
index 98ebeb2fcfc..b4f00e46ad4 100644
--- a/gdb/score-tdep.c
+++ b/gdb/score-tdep.c
@@ -478,7 +478,7 @@ score_type_needs_double_align (struct type *type)
{
int i, n;
- n = TYPE_NFIELDS (type);
+ n = type->num_fields ();
for (i = 0; i < n; i++)
if (score_type_needs_double_align (TYPE_FIELD_TYPE (type, i)))
return 1;