summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ffi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffi.c b/ffi.c
index beef8d1e..8776aad4 100644
--- a/ffi.c
+++ b/ffi.c
@@ -2796,7 +2796,7 @@ static val make_ffi_type_struct(val syntax, val lisp_type,
if (bits > room) {
offs = unit_offs + size;
- bit_offs = 0;
+ bit_offs = bits_alloc = 0;
}
if (bits_alloc == 0) {
@@ -2804,7 +2804,7 @@ static val make_ffi_type_struct(val syntax, val lisp_type,
most_align = mtft->align;
}
- memb[i].offs = unit_offs;
+ memb[i].offs = offs;
#if HAVE_LITTLE_ENDIAN
mtft->shift = bits_alloc;