harec

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

commit c4d2d1d69a6031362b09ce62a2c9c8112c839438
parent 9489966ff8d2c0830fea168dc77e74f7782cc38f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 24 Feb 2021 09:36:35 -0500

type_store: fix offsets in tuple lookup

Diffstat:
Msrc/type_store.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/type_store.c b/src/type_store.c @@ -764,7 +764,8 @@ type_store_lookup_tuple(struct type_store *store, struct type_tuple *values) if (t->type->align > type.align) { type.align = t->type->align; } - type.size = (type.size % t->type->align) + t->type->size; + t->offset = type.size % t->type->align + type.size; + type.size += type.size % t->type->align + t->type->size; } return type_store_lookup_type(store, &type); }