summaryrefslogtreecommitdiffstats
path: root/ffi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffi.c')
-rw-r--r--ffi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffi.c b/ffi.c
index 1c44b442..db7a4c38 100644
--- a/ffi.c
+++ b/ffi.c
@@ -3817,6 +3817,8 @@ static val make_ffi_type_struct(val syntax, val lisp_type,
ucnum bits_alloc = 8 * (offs - unit_offs) + bit_offs;
ucnum room = bits_type - bits_alloc;
+ bug_unless (bits_type >= bits_alloc);
+
if (bits == 0) {
ucnum szmask = size - 1;
ucnum unit_offs = offs & ~szmask;