* ada-lang.c (resolve_subexp): Correct arity of binary operators.

This commit is contained in:
Joel Brobecker 2007-08-15 18:43:15 +00:00
parent ee90b9ab36
commit 40c8aaa9fe
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (resolve_subexp): Correct arity of binary operators.
2007-08-15 Paul Hilfinger <hilfinger@adacore.com>
Joel Brobecker <brobecker@adacore.com>

View file

@ -2691,6 +2691,9 @@ resolve_subexp (struct expression **expp, int *pos, int deprocedure_p,
case BINOP_REPEAT:
case BINOP_SUBSCRIPT:
case BINOP_COMMA:
*pos += 1;
nargs = 2;
break;
case UNOP_NEG:
case UNOP_PLUS: