Make the signedness warning useful with the field name
[babeltrace.git] / types / float.c
index dc97af48f1304d99003446b404bf6785169b1640..3e49a4b1fbc7c2c995cb7adc490de0fe49d61d6b 100644 (file)
@@ -20,7 +20,8 @@
 
 #include <babeltrace/compiler.h>
 #include <babeltrace/format.h>
-#include <endian.h>
+#include <babeltrace/types.h>
+#include <babeltrace/endian.h>
 
 static
 struct definition *_float_definition_new(struct declaration *declaration,
@@ -61,13 +62,13 @@ struct declaration_float *
 
        float_declaration->sign = integer_declaration_new(1,
                                                byte_order, false, 1, 2,
-                                               CTF_STRING_NONE);
+                                               CTF_STRING_NONE, NULL);
        float_declaration->mantissa = integer_declaration_new(mantissa_len - 1,
                                                byte_order, false, 1, 10,
-                                               CTF_STRING_NONE);
+                                               CTF_STRING_NONE, NULL);
        float_declaration->exp = integer_declaration_new(exp_len,
                                                byte_order, true, 1, 10,
-                                               CTF_STRING_NONE);
+                                               CTF_STRING_NONE, NULL);
        return float_declaration;
 }
 
This page took 0.023889 seconds and 4 git commands to generate.