From 22aff2cc1fc1f0bdf8eb8dc2338c4b957ddacaf9 Mon Sep 17 00:00:00 2001 From: Tommi Rantala Date: Thu, 20 Sep 2012 15:44:57 +0300 Subject: [PATCH] Fix second operand read in dwarf_eval_expr() Due to bad bracketing, the second operand was never read for dwarf expressions that take two operands. Caught with sparse. --- src/dwarf/Gexpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dwarf/Gexpr.c b/src/dwarf/Gexpr.c index ef8b32a0..b4f2bc96 100644 --- a/src/dwarf/Gexpr.c +++ b/src/dwarf/Gexpr.c @@ -254,7 +254,7 @@ do { \ OPND1_TYPE (operands_signature), &operand1, arg)) < 0) return ret; - if (NUM_OPERANDS (operands_signature > 1)) + if (NUM_OPERANDS (operands_signature) > 1) if ((ret = read_operand (as, a, addr, OPND2_TYPE (operands_signature), &operand2, arg)) < 0)