Skip to content

Commit 2d7750b

Browse files
committed
core: Fix os::load_self types on FreeBSD
1 parent 38b2b74 commit 2d7750b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ fn self_exe_path() -> option<path> unsafe {
164164
KERN_PROC as c_int,
165165
KERN_PROC_PATHNAME as c_int, -1 as c_int];
166166
ret sysctl(vec::unsafe::to_ptr(mib), vec::len(mib) as c_uint,
167-
pth as *mutable c_void, ptr::mut_addr_of(plen),
167+
pth as *mutable c_void, ptr::mut_addr_of(plen as size_t),
168168
ptr::null(), 0u as size_t)
169169
== (0 as c_int);
170170
}

0 commit comments

Comments
 (0)