From 56a9ba5ea53a5d0b6268939d6a6e89837c2e4658 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Fri, 10 Jan 2020 22:39:01 -0500 Subject: made Field.type not a pointer --- copy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'copy.c') diff --git a/copy.c b/copy.c index 80d5a52..58ba390 100644 --- a/copy.c +++ b/copy.c @@ -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; } -- cgit v1.2.3