Fix: headers: make static inline upcasts compatible with C++
[babeltrace.git] / include / babeltrace / graph / component-class-filter.h
index cf001bf8cd9d49d809814c1727fc54e4df2d9bad..2e8f472e6632c84c34763f9b851a64f0847a8a0e 100644 (file)
@@ -43,7 +43,7 @@
  * bt_port_output, bt_query_executor, bt_self_component_class_filter,
  * bt_self_component_filter, bt_self_component_port_input,
  * bt_self_component_port_output, bt_value, bt_message_array_const,
- * bt_bool, bt_self_message_iterator
+ * bt_bool, bt_self_message_iterator, __BT_UPCAST
  */
 #include <babeltrace/types.h>
 
@@ -128,7 +128,7 @@ static inline
 bt_component_class *bt_component_class_filter_as_component_class(
                bt_component_class_filter *comp_cls_filter)
 {
-       return (void *) comp_cls_filter;
+       return __BT_UPCAST(bt_component_class, comp_cls_filter);
 }
 
 extern
This page took 0.022897 seconds and 4 git commands to generate.