diff options
author | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-05 18:09:37 -0400 |
---|---|---|
committer | Tucker Evans <tuckerevans24@gmail.com> | 2019-09-05 18:09:37 -0400 |
commit | 1300aa3672d7ae27963465fa6d8d2a6ebe8a71d2 (patch) | |
tree | 8d1ada5ceb9a07fcbc105ea5fd0707a6ed3acb12 /pc.y | |
parent | c6d13abfc122c15ecc182b1fc5645628e8eb4d18 (diff) |
Fix count_args to handle single variable parameters
Diffstat (limited to 'pc.y')
-rw-r--r-- | pc.y | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -178,10 +178,7 @@ sub_prog_head check_id(cur_scope->prev, $2); tmp = scope_insert(cur_scope->prev, $2); - if ($3->type == ID) - i = 1; - else - i = count_args($3); + i = count_args($3); tmp->func_info = malloc(sizeof(struct fi)); assert(tmp->func_info); |