Fix: bt_ctf_field_type_floating_point_copy(): set self references
[babeltrace.git] / formats / ctf / ir / event-types.c
index c750d2187a12a5534579d6f4d29a27b48f9f7651..761b2c26aae439f99d99255b6c0e5535db60fce0 100644 (file)
@@ -3236,6 +3236,9 @@ struct bt_ctf_field_type *bt_ctf_field_type_floating_point_copy(
        copy_float->mantissa = floating_point->mantissa;
        copy_float->exp = floating_point->exp;
        copy_float->user_byte_order = floating_point->user_byte_order;
+       copy_float->declaration.sign = &copy_float->sign;
+       copy_float->declaration.mantissa = &copy_float->mantissa;
+       copy_float->declaration.exp = &copy_float->exp;
 end:
        return copy;
 }
This page took 0.031942 seconds and 4 git commands to generate.