ir: refactor FT validation and resolving
[babeltrace.git] / formats / ctf / ir / event-fields.c
index 65c9aee863a7511ec4629fb9c9aaecfd1b8d6285..71c4ea173edd02d057cde0d08d226f57bff4c0be 100644 (file)
@@ -535,7 +535,8 @@ int bt_ctf_field_structure_set_field(struct bt_ctf_field *field,
        expected_field_type =
                bt_ctf_field_type_structure_get_field_type_by_name(field->type,
                name);
-       if (expected_field_type != value->type) {
+
+       if (bt_ctf_field_type_compare(expected_field_type, value->type)) {
                ret = -1;
                goto end;
        }
This page took 0.024857 seconds and 4 git commands to generate.