From: Philippe Proulx Date: Wed, 11 Feb 2015 16:36:18 +0000 (-0500) Subject: ctf-ir: allow 1-bit signed integer types X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=309d3b7ffc1cdd4e0368b01d7842f699511008e4;p=deliverable%2Fbabeltrace.git ctf-ir: allow 1-bit signed integer types Signed-off-by: Philippe Proulx Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/ir/event-types.c b/formats/ctf/ir/event-types.c index d1d9c771e..ff0b46ff2 100644 --- a/formats/ctf/ir/event-types.c +++ b/formats/ctf/ir/event-types.c @@ -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;