* eval.c (evaluate_subexp_standard): Revert inadvertent change.

This commit is contained in:
Tom Tromey
2010-05-11 16:54:28 +00:00
parent 941100245a
commit d02691ef9a
2 changed files with 6 additions and 2 deletions

View File

@@ -2033,8 +2033,8 @@ evaluate_subexp_standard (struct type *expect_type,
error (_("':' operator used in invalid context"));
case BINOP_SUBSCRIPT:
arg1 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
arg2 = evaluate_subexp (NULL_TYPE, exp, pos, noside);
arg1 = evaluate_subexp_with_coercion (exp, pos, noside);
arg2 = evaluate_subexp_with_coercion (exp, pos, noside);
if (noside == EVAL_SKIP)
goto nosideret;
if (binop_user_defined_p (op, arg1, arg2))