1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-25 08:37:38 +01:00

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.
This commit is contained in:
Tommi Rantala 2012-09-20 15:44:57 +03:00
parent 65bdcc6f9d
commit 22aff2cc1f

View file

@ -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)