diff options
Diffstat (limited to 'copy.c')
-rw-r--r-- | copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -126,7 +126,7 @@ static void copy_type(Copier *c, Type *out, Type *in) { Field *fout = &out->struc->fields[i]; Field *fin = &in->struc->fields[i]; *fout = *fin; - copy_type(c, fout->type = allocr_malloc(c->allocr, sizeof *fout->type), fin->type); + copy_type(c, &fout->type, &fin->type); } } break; } |