diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-05-17 20:47:04 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-05-17 20:47:04 -0700 |
commit | 7b20997b66ad35b9a7f0693d8685c06a2875e723 (patch) | |
tree | baf04ff35c3f79e6ab77dc9e7143f9d707bcdeea | |
parent | 8f5a65147b26214df16813777e061ead5c011b38 (diff) | |
download | txr-7b20997b66ad35b9a7f0693d8685c06a2875e723.tar.gz txr-7b20997b66ad35b9a7f0693d8685c06a2875e723.tar.bz2 txr-7b20997b66ad35b9a7f0693d8685c06a2875e723.zip |
ffi: bugfix: unions are not unconditionally incomplete.
-rw-r--r-- | ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |