From: Mathieu Desnoyers Date: Tue, 9 Feb 2016 18:27:23 +0000 (-0500) Subject: Fix: CTF parser: accept signed constant literals X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=128e68e8230a4001c4dbab6dfdcdf986c7c45113 Fix: CTF parser: accept signed constant literals Those are inaccurately rejected by the parser due to this bug. This affects environment variables and loglevel values. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/formats/ctf/metadata/ctf-visitor-generate-io-struct.c b/formats/ctf/metadata/ctf-visitor-generate-io-struct.c index 4b171984..1831b2dc 100644 --- a/formats/ctf/metadata/ctf-visitor-generate-io-struct.c +++ b/formats/ctf/metadata/ctf-visitor-generate-io-struct.c @@ -219,7 +219,6 @@ int get_unary_signed(struct bt_list_head *head, int64_t *value) bt_list_for_each_entry(node, head, siblings) { if (node->type != NODE_UNARY_EXPRESSION - || node->u.unary_expression.type != UNARY_UNSIGNED_CONSTANT || (node->u.unary_expression.type != UNARY_UNSIGNED_CONSTANT && node->u.unary_expression.type != UNARY_SIGNED_CONSTANT) || node->u.unary_expression.link != UNARY_LINK_UNKNOWN || i != 0)