summaryrefslogtreecommitdiffstats
path: root/ffi.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffi.c')
-rw-r--r--ffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi.c b/ffi.c
index 6891aac1..4f79dcc1 100644
--- a/ffi.c
+++ b/ffi.c
@@ -2050,7 +2050,7 @@ static void ffi_ptr_in_release(struct txr_ffi_type *tft, val obj, mem_t *dst)
static val ffi_flex_struct_in(struct txr_ffi_type *tft, val strct, val self)
{
struct smemb *lastm = &tft->memb[tft->nelem - 1];
- val length_meth = maybe_slot(strct, length_s);
+ val length_meth = get_special_slot(strct, length_m);
if (length_meth) {
val len = funcall1(length_meth, strct);