aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--semantics.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/semantics.c b/semantics.c
index 9ef5f7f..285538e 100644
--- a/semantics.c
+++ b/semantics.c
@@ -939,7 +939,7 @@ ExpType exp_check_ref(ExpType op1, CNode *p) {
ERROR((p, "lvalue required as unary '&' operand"));
/* TODO: constant pointer folding */
p->ext.is_const = 0;
- /* should be constant */
+ /* should not be constant */
res.lval = 0;
res.type = ctype_create("", CPTR, p);
res.type->rec.ref = op1.type;