Fix: bt_ctfser_write_float64(): use `double` in union, not `float`
[babeltrace.git] / src / ctfser / ctfser.h
index f8bbfae2de70558b3fd90686148759e331c4206b..cf9941bc225ee843e95c0f7f76f556091f3969b5 100644 (file)
@@ -507,10 +507,10 @@ int bt_ctfser_write_float64(struct bt_ctfser *ctfser, double value,
 {
        union u64f {
                uint64_t u;
-               float f;
+               double d;
        } u64f;
 
-       u64f.f = value;
+       u64f.d = value;
        return bt_ctfser_write_unsigned_int(ctfser, u64f.u, alignment_bits,
                64, byte_order);
 }
This page took 0.027401 seconds and 4 git commands to generate.