aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js/api')
-rw-r--r--src/bun.js/api/ffi.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/api/ffi.zig b/src/bun.js/api/ffi.zig
index ae3e596f1..fe2b50955 100644
--- a/src/bun.js/api/ffi.zig
+++ b/src/bun.js/api/ffi.zig
@@ -384,7 +384,7 @@ pub const FFI = struct {
global,
&str,
@intCast(u32, function.arg_types.items.len),
- compiled.ptr,
+ bun.cast(JSC.JSHostFunctionPtr, compiled.ptr),
false,
);
compiled.js_function = cb;
@@ -480,7 +480,7 @@ pub const FFI = struct {
global,
name,
@intCast(u32, function.arg_types.items.len),
- compiled.ptr,
+ bun.cast(JSC.JSHostFunctionPtr, compiled.ptr),
false,
);
compiled.js_function = cb;