harec

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

commit a4173d8607e63bbcbb658b2731f925e9426a1a9a
parent f9dbf4981add935413649f0b8e77c7edd189648a
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Fri,  3 Sep 2021 22:13:02 +0000

type_get_field: handle alias embeds

Signed-off-by: Eyal Sawady <ecs@d2evs.net>

Diffstat:
Msrc/types.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/types.c b/src/types.c @@ -50,7 +50,7 @@ type_get_field(const struct type *type, const char *name) } } else { const struct struct_field *f = - type_get_field(field->type, name); + type_get_field(type_dealias(field->type), name); if (f != NULL) { return f; }