aboutsummaryrefslogtreecommitdiff
path: root/pc.y
diff options
context:
space:
mode:
Diffstat (limited to 'pc.y')
-rw-r--r--pc.y5
1 files changed, 1 insertions, 4 deletions
diff --git a/pc.y b/pc.y
index 6538ef6..8e0130c 100644
--- a/pc.y
+++ b/pc.y
@@ -118,10 +118,7 @@ id_list
var_declarations
:var_declarations VAR id_list ':' type ';'
{
- ptree *tmp;
- for(tmp = $3; tmp; tmp = tmp->l)
- tmp->type = $5;
-
+ update_type_info($3, $5);
}
|/*empty*/
;