X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;ds=sidebyside;f=formats%2Fctf%2Fir%2Fevent-fields.c;h=71c4ea173edd02d057cde0d08d226f57bff4c0be;hb=09840de5d022697671dafe2bed427fa5c09b40b9;hp=65c9aee863a7511ec4629fb9c9aaecfd1b8d6285;hpb=f90b8e2662a12070fe474f21e0faf9243938e71d;p=babeltrace.git diff --git a/formats/ctf/ir/event-fields.c b/formats/ctf/ir/event-fields.c index 65c9aee8..71c4ea17 100644 --- a/formats/ctf/ir/event-fields.c +++ b/formats/ctf/ir/event-fields.c @@ -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; }