Fix: ctf-writer: field_type_common_has_known_id always returns true
[babeltrace.git] / src / ctf-writer / fields.h
index bab2e581697e8c9031de0fcdb3900d8d720b00b9..5ff9ceb7852a0e87bca417b6a6e40bd5d4df0b0d 100644 (file)
@@ -288,7 +288,7 @@ BT_ASSERT_DBG_FUNC
 static inline bool field_type_common_has_known_id(
                struct bt_ctf_field_type_common *ft)
 {
-       return (int) ft->id > BT_CTF_FIELD_TYPE_ID_UNKNOWN ||
+       return (int) ft->id > BT_CTF_FIELD_TYPE_ID_UNKNOWN &&
                (int) ft->id < BT_CTF_FIELD_TYPE_ID_NR;
 }
 
This page took 0.023578 seconds and 4 git commands to generate.