Should pass nesting + 1 as parameter rather than nesting++. Worked in
when nesting was in one direction (due to side-effect of the first ++),
but not the other.
Fixes #688
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
return -EINVAL;
}
ret = check_bin_op_nesting_recursive(node->u.binary.left,
- nesting++);
+ nesting + 1);
if (ret)
return ret;
return check_bin_op_nesting_recursive(node->u.binary.right,
- nesting++);
+ nesting + 1);
}
case IR_OP_LOGICAL:
{