From 84f3ab45a75a881cf7959edd381bbcd0ee828ed5 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 17 May 2022 20:47:04 -0700 Subject: ffi: bugfix: unions are not unconditionally incomplete. --- ffi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffi.c b/ffi.c index 636db408..a12ef4a3 100644 --- a/ffi.c +++ b/ffi.c @@ -3604,7 +3604,7 @@ static val make_ffi_type_union(val syntax, val use_existing, val self) uw_throwf(error_s, lit("~a: unions cannot contain incomplete member"), self, nao); - + tft->incomplete = (nmemb == 0); tft->nelem = i; tft->size = (biggest_size + most_align - 1) & ~(most_align - 1); -- cgit v1.2.3