diff options
-rw-r--r-- | ffi.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -3916,13 +3916,12 @@ static val make_ffi_type_struct(val syntax, val lisp_type, tft->out = ffi_struct_out; if (flexp) { - tft->size = offs; tft->alloc = ffi_flex_alloc; tft->dynsize = ffi_flex_dynsize; - } else { - tft->size = (offs + most_align - 1) & ~(most_align - 1); } + tft->size = (offs + most_align - 1) & ~(most_align - 1); + tft->align = most_align; return obj; |