From b19b2cfd14dea4e08c31071cb1858c469ef3d4f2 Mon Sep 17 00:00:00 2001 From: "Vladimir N. Makarov" Date: Tue, 14 May 2024 12:56:55 -0400 Subject: [PATCH] Check size node code instead of size node only in composite_type. --- c2mir/c2mir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c2mir/c2mir.c b/c2mir/c2mir.c index bda5ccd463..bd40c1ff8a 100644 --- a/c2mir/c2mir.c +++ b/c2mir/c2mir.c @@ -5981,7 +5981,7 @@ static struct type composite_type (c2m_ctx_t c2m_ctx, struct type *tp1, struct t t.u.arr_type = arr_type = reg_malloc (c2m_ctx, sizeof (struct arr_type)); *arr_type = *tp1->u.arr_type; - if (arr_type->size == N_IGNORE) arr_type->size = tp2->u.arr_type->size; + if (arr_type->size->code == N_IGNORE) arr_type->size = tp2->u.arr_type->size; *arr_type->el_type = composite_type (c2m_ctx, tp1->u.arr_type->el_type, tp2->u.arr_type->el_type); } else if (tp1->mode == TM_FUNC) { /* ??? */