diff options
| author | Michael Forney <[email protected]> | 2020-04-19 16:31:52 -0700 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2020-08-06 09:51:12 +0200 |
| commit | 9de57265ce8453de0f773c48550ca05460844dd1 (patch) | |
| tree | c6950680b590eb1cb698bed97cc5ef20dda794fa /parse.c | |
| parent | 190263f1b628ba3171309147120fd3ba0e370b42 (diff) | |
Use a dynamic array for phi arguments
Diffstat (limited to 'parse.c')
| -rw-r--r-- | parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -673,7 +673,9 @@ Ins: phi = alloc(sizeof *phi); phi->to = r; phi->cls = k; + phi->arg = vnew(i, sizeof arg[0], Pfn); memcpy(phi->arg, arg, i * sizeof arg[0]); + phi->blk = vnew(i, sizeof blk[0], Pfn); memcpy(phi->blk, blk, i * sizeof blk[0]); phi->narg = i; *plink = phi; |
