gdb: add type::num_fields / type::set_num_fields
[deliverable/binutils-gdb.git] / gdb / windows-tdep.c
index 20a18e6b68398163daebcf4cb8b425a25abe3d9d..d7c498f2e93bac7c6eff75de6d2712aa1ff70e96 100644 (file)
@@ -751,7 +751,7 @@ create_enum (struct gdbarch *gdbarch, int bit, const char *name,
   int i;
 
   type = arch_type (gdbarch, TYPE_CODE_ENUM, bit, name);
-  TYPE_NFIELDS (type) = count;
+  type->set_num_fields (count);
   TYPE_FIELDS (type) = (struct field *)
     TYPE_ZALLOC (type, sizeof (struct field) * count);
   TYPE_UNSIGNED (type) = 1;
This page took 0.025549 seconds and 4 git commands to generate.