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 aa55a39e..cad0376d 100644
--- a/ffi.c
+++ b/ffi.c
@@ -642,7 +642,7 @@ static val ffi_buf_get(struct txr_ffi_type *tft, mem_t *src, val self)
static mem_t *ffi_buf_alloc(struct txr_ffi_type *tft, val buf, val self)
{
(void) tft;
- return buf_get(buf, self);
+ return coerce(mem_t *, buf_addr_of(buf, self));
}
static void ffi_ptr_walk(struct txr_ffi_type *tft, mem_t *ctx,