diff options
Diffstat (limited to 'gdb/typeprint.c')
-rw-r--r-- | gdb/typeprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/typeprint.c b/gdb/typeprint.c index e5009ea3800..a46f6a564c0 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c @@ -619,7 +619,7 @@ print_type_scalar (struct type *type, LONGEST val, struct ui_file *stream) { case TYPE_CODE_ENUM: - len = TYPE_NFIELDS (type); + len = type->num_fields (); for (i = 0; i < len; i++) { if (TYPE_FIELD_ENUMVAL (type, i) == val) |