Fix: CTF writer: use appropriate enumerators
[babeltrace.git] / lib / ctf-writer / fields.c
index 11baf31b76c4c7bf1ee3fc6cf90bec5947813c61..8d92cb6ab7e17d1eaafc009241fdc9e0ee470448 100644 (file)
@@ -623,12 +623,12 @@ int bt_ctf_field_sequence_set_length(struct bt_ctf_field *field,
 
        BT_ASSERT_PRE_NON_NULL(length_field, "Length field");
        BT_ASSERT_PRE_FIELD_COMMON_IS_SET((void *) length_field, "Length field");
-       BT_ASSERT_PRE(common_length_field->type->id == BT_CTF_FIELD_TYPE_ID_INTEGER ||
-                       common_length_field->type->id == BT_CTF_FIELD_TYPE_ID_ENUM,
+       BT_ASSERT_PRE(common_length_field->type->id == BT_FIELD_TYPE_ID_INTEGER ||
+                       common_length_field->type->id == BT_FIELD_TYPE_ID_ENUM,
                "Length field must be an integer or enumeration field: %!+wf",
                length_field);
 
-       if (common_length_field->type->id == BT_CTF_FIELD_TYPE_ID_ENUM) {
+       if (common_length_field->type->id == BT_FIELD_TYPE_ID_ENUM) {
                struct bt_ctf_field_enumeration *enumeration = (void *)
                        length_field;
 
This page took 0.023269 seconds and 4 git commands to generate.