Fix: floats should set content size in tmp definition
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 27 Nov 2013 19:37:52 +0000 (14:37 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Feb 2014 17:11:52 +0000 (12:11 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/types/float.c

index afe5e8d2cf2ef9d66a1cce2df2727bea70a4ba34..030ac167c90dc5e431d593742c5dd7d85f9db711 100644 (file)
@@ -201,6 +201,7 @@ int ctf_float_read(struct bt_stream_pos *ppos, struct bt_definition *definition)
        mmap_align_set_addr(&mma, (char *) u.bits);
        destp.base_mma = &mma;
        destp.packet_size = sizeof(u) * CHAR_BIT;
+       destp.content_size = sizeof(u) * CHAR_BIT;
        if (!ctf_align_pos(pos, float_declaration->p.alignment)) {
                ret = -EFAULT;
                goto end_unref;
@@ -260,6 +261,7 @@ int ctf_float_write(struct bt_stream_pos *ppos, struct bt_definition *definition
        mmap_align_set_addr(&mma, (char *) u.bits);
        srcp.base_mma = &mma;
        srcp.packet_size = sizeof(u) * CHAR_BIT;
+       srcp.content_size = sizeof(u) * CHAR_BIT;
        switch (float_declaration->mantissa->len + 1) {
        case FLT_MANT_DIG:
                u.vf = float_definition->value;
This page took 0.025524 seconds and 4 git commands to generate.