summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi.c b/ffi.c
index dd2fe20d..d8522d89 100644
--- a/ffi.c
+++ b/ffi.c
@@ -3295,7 +3295,7 @@ static val make_ffi_type_struct(val syntax, val lisp_type,
ucnum room = bits_type - bits_alloc;
if (bits == 0) {
- if (offs != unit_offs)
+ if (offs != unit_offs || bit_offs > 0)
offs = unit_offs + size;
bit_offs = 0;
nmemb--, i--;