ctf-ir: allow 1-bit signed integer types
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 11 Feb 2015 16:36:18 +0000 (11:36 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 12 Feb 2015 02:22:13 +0000 (21:22 -0500)
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ir/event-types.c

index d1d9c771e8b5a201363797e7e7a98044cd9c1f75..ff0b46ff2ebceb4af7f08b27d80966a45fbac752 100644 (file)
@@ -417,11 +417,6 @@ int bt_ctf_field_type_integer_set_signed(struct bt_ctf_field_type *type,
        }
 
        integer = container_of(type, struct bt_ctf_field_type_integer, parent);
-       if (is_signed && integer->declaration.len <= 1) {
-               ret = -1;
-               goto end;
-       }
-
        integer->declaration.signedness = !!is_signed;
 end:
        return ret;
This page took 0.027402 seconds and 4 git commands to generate.