Fix warnings emitted by `gcc -Wall`
[babeltrace.git] / lib / ctf-ir / resolve.c
index 2ab457ab8f3dfdba226a7f98f786f67554349fc0..86657da7283ba5f9627e9573f7110425bc778b04 100644 (file)
@@ -399,7 +399,8 @@ int ptokens_to_field_path(GList *ptokens, struct bt_ctf_field_path *field_path,
                        bt_ctf_field_type_get_type_id(type);
 
                /* Find to which index corresponds the current path token */
-               if (type_id == CTF_TYPE_ARRAY || type_id == CTF_TYPE_SEQUENCE) {
+               if (type_id == BT_CTF_FIELD_TYPE_ID_ARRAY ||
+                               type_id == BT_CTF_FIELD_TYPE_ID_SEQUENCE) {
                        child_index = -1;
                } else {
                        child_index = bt_ctf_field_type_get_field_index(type,
This page took 0.025839 seconds and 4 git commands to generate.