harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 479e831dc371ae0549ad5e28929f9c999d52f107
parent 67ebb1ea9bf08e28369675f58ad30e4f82c5557e
Author: Drew DeVault <sir@cmpwn.com>
Date:   Mon,  1 Feb 2021 11:46:15 -0500

gen_copy: fix selection of largest union field

TBH I expect to run into more problems with this function later

Diffstat:
Msrc/gen.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/gen.c b/src/gen.c @@ -193,6 +193,7 @@ gen_copy(struct gen_context *ctx, f; f = f->next) { if (f->type->size > max) { field = f; + max = f->type->size; } } }