Skip to content

Commit 9215bea

Browse files
committed
forgot to perform .ptr on slice
1 parent df36ae4 commit 9215bea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/dynamic_library.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ pub const DarwinDynLib = struct {
284284

285285
// see https://developer.apple.com/library/archive/documentation/System/Conceptual/ManPages_iPhoneOS/man3/dlopen.3.html
286286
return DarwinDynLib{
287-
.handle = darwin.dlopen(path, darwin.RTLD_LAZY) orelse {
287+
.handle = darwin.dlopen(path.ptr, darwin.RTLD_LAZY) orelse {
288288
return error.FileNotFound;
289289
},
290290
};

0 commit comments

Comments
 (0)