From 5c7cd7ff2c993a01a3da669b8e27dcb0382a0e16 Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Mon, 31 Aug 2026 22:00:30 -0500 Subject: [PATCH] use `type_idfun_reference` for substruct basically, do not assume that just because a field is a "substruct" that it has an `_identity`; instead, use `identity_traits` in all cases --- StructFields.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StructFields.pm b/StructFields.pm index ef0f9a082..7c92839fa 100644 --- a/StructFields.pm +++ b/StructFields.pm @@ -594,7 +594,7 @@ sub render_field_metadata_rec($$) { if ($subtype && $subtype eq 'enum') { push @field_defs, [ "${FLD}(PRIMITIVE, $name)", type_identity_reference($field), 0, $extra ]; } else { - push @field_defs, [ "${FLD}(SUBSTRUCT, $name)", type_identity_reference($field), 0, $extra ]; + push @field_defs, [ "${FLD}(SUBSTRUCT, $name)", type_idfun_reference($field), 0, $extra ]; } } } elsif ($meta eq 'pointer') {