aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/pc.y b/pc.y
index 23b3b24..3753cdf 100644
--- a/pc.y
+++ b/pc.y
@@ -133,6 +133,7 @@ id_list
check_id(cur_scope, $1);
tmp = scope_insert(cur_scope, $1);
+ tmp->offset = cur_scope->offset++;
$$ = mkid(tmp);
}
|id_list ',' ID
@@ -141,6 +142,7 @@ id_list
check_id(cur_scope, $3);
tmp = scope_insert(cur_scope, $3);
+ tmp->offset = cur_scope->offset++;
$$ = mktree(LIST, $1, mkid(tmp));
}
;