{
int ret;
- if (nesting > 0) {
- fprintf(stderr, "[error] Nesting of binary operators is not allowed, except for logical operators.\n");
- 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:
{