projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23f511
)
Correct precedence of postfix ++ and -- in the AST-printer.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 19 Nov 2008 22:25:52 +0000
(22:25 +0000)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 19 Nov 2008 22:25:52 +0000
(22:25 +0000)
[r23837]
ast.c
patch
|
blob
|
history
diff --git
a/ast.c
b/ast.c
index
7f7ed73
..
cfec103
100644
(file)
--- a/
ast.c
+++ b/
ast.c
@@
-126,8
+126,8
@@
static unsigned get_expression_precedence(expression_kind_t kind)
[EXPR_UNARY_NOT] = PREC_UNARY,
[EXPR_UNARY_DEREFERENCE] = PREC_UNARY,
[EXPR_UNARY_TAKE_ADDRESS] = PREC_UNARY,
- [EXPR_UNARY_POSTFIX_INCREMENT] = PREC_
UNARY
,
- [EXPR_UNARY_POSTFIX_DECREMENT] = PREC_
UNARY
,
+ [EXPR_UNARY_POSTFIX_INCREMENT] = PREC_
POSTFIX
,
+ [EXPR_UNARY_POSTFIX_DECREMENT] = PREC_
POSTFIX
,
[EXPR_UNARY_PREFIX_INCREMENT] = PREC_UNARY,
[EXPR_UNARY_PREFIX_DECREMENT] = PREC_UNARY,
[EXPR_UNARY_CAST] = PREC_UNARY,