X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fself-component.h;fp=include%2Fbabeltrace%2Fgraph%2Fself-component.h;h=0be09442831b26e7d4e099a0bb357e3fb72e9476;hp=65ff2e67de9853d0f3ec567e9ff41c2c310fa64b;hb=005f1204d7620018bb2c1406b6194940f0ee119f;hpb=25f741168b45db9dd975136cfd3f66dbd9af39d0 diff --git a/include/babeltrace/graph/self-component.h b/include/babeltrace/graph/self-component.h index 65ff2e67..0be09442 100644 --- a/include/babeltrace/graph/self-component.h +++ b/include/babeltrace/graph/self-component.h @@ -23,7 +23,7 @@ * SOFTWARE. */ -/* For bt_component, bt_self_component */ +/* For bt_component, bt_self_component, __BT_UPCAST */ #include #ifdef __cplusplus @@ -43,7 +43,7 @@ static inline const bt_component *bt_self_component_as_component( bt_self_component *self_component) { - return (const void *) self_component; + return __BT_UPCAST(bt_component, self_component); } extern void *bt_self_component_get_data(