Correct precedence of call expressions for printing.
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 12 Sep 2008 18:19:48 +0000 (18:19 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 12 Sep 2008 18:19:48 +0000 (18:19 +0000)
[r21903]

ast.c

diff --git a/ast.c b/ast.c
index 191f186..3e7f862 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -109,7 +109,7 @@ static unsigned get_expression_precedence(expression_kind_t kind)
                [EXPR_STRING_LITERAL]            = PREC_PRIM,
                [EXPR_WIDE_STRING_LITERAL]       = PREC_PRIM,
                [EXPR_COMPOUND_LITERAL]          = PREC_UNARY,
-               [EXPR_CALL]                      = PREC_PRIM,
+               [EXPR_CALL]                      = PREC_ACCESS,
                [EXPR_CONDITIONAL]               = PREC_COND,
                [EXPR_SELECT]                    = PREC_ACCESS,
                [EXPR_ARRAY_ACCESS]              = PREC_ACCESS,