aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-08-04 21:52:30 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-08-04 21:52:30 -0400
commita359edde7c8806687c4f0307dbfc6f77077ba063 (patch)
tree8a06fa32ce403cb961b6a32ecce7c19d78c40fb1 /pc.y
parent0caa6768c7055c3e3fb2f2ebeda2c35152ea011b (diff)
Fix updating type on single variable declarations
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 92a1f0c..81cb69b 100644
--- a/pc.y
+++ b/pc.y
@@ -192,10 +192,12 @@ param_list
:id_list ':' type
{
$$ = $1;
+ update_type_info($1, $3);
}
|param_list ';' id_list ':' type
{
$$ = mktree(LIST, $1, $3);
+ update_type_info($3, $5);
}
;