From 0ce728bcce123d2a615f7a8b095233841eecb5cb Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 4 Feb 2024 18:10:11 +0200 Subject: [PATCH] do a thing that should be done --- src/ffi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ffi.c b/src/ffi.c index 66c877f9..18c8776b 100644 --- a/src/ffi.c +++ b/src/ffi.c @@ -393,7 +393,8 @@ BQNFFIEnt ffi_parseTypeStr(u32** src, bool inPtr, bool top) { // parse actual ty ffi_type** els = rt.elements = (ffi_type**) ao->data; PLAINLOOP for (usz i = 0; i < n; i++) els[i] = &rp[i].t; els[n] = NULL; - + + rt.alignment = rt.size = 0; rt.type = FFI_TYPE_STRUCT; TALLOC(size_t, offsets, n); @@ -473,6 +474,7 @@ BQNFFIEnt ffi_parseTypeStr(u32** src, bool inPtr, bool top) { // parse actual ty PLAINLOOP for (usz i = 0; i < n; i++) els[i] = &rp[i].t; els[n] = NULL; TSFREE(es); + rt.alignment = rt.size = 0; rt.type = FFI_TYPE_STRUCT; TALLOC(size_t, offsets, n);