aboutsummaryrefslogtreecommitdiffhomepage
path: root/c/c.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/c.c')
-rw-r--r--c/c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/c.c b/c/c.c
index d79439a..5ff2041 100644
--- a/c/c.c
+++ b/c/c.c
@@ -788,7 +788,7 @@ ppostfixopers(struct comp *cm, struct expr *ex)
rhs = commaexpr(cm);
span = ex->span;
if (!joinspan(&span.ex, tk.span.ex) || !joinspan(&span.ex, ex->span.ex)
- || (peek(cm, &tk2), !joinspan(&span.ex, tk.span.ex)))
+ || (peek(cm, &tk), !joinspan(&span.ex, tk.span.ex)))
span = tk.span;
expect(cm, ']', NULL);