Skip to content

Commit 206757f

Browse files
committed
libcore: replace mut_addr_of properly on mac
1 parent cc89029 commit 206757f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libcore/os.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,9 @@ pub fn self_exe_path() -> Option<Path> {
404404
fn load_self() -> Option<~str> {
405405
unsafe {
406406
do fill_charp_buf() |buf, sz| {
407+
let mut sz = sz as u32;
407408
libc::funcs::extra::_NSGetExecutablePath(
408-
buf, &mut (sz as u32)) == (0 as c_int)
409+
buf, &mut sz) == (0 as c_int)
409410
}
410411
}
411412
}

0 commit comments

Comments
 (0)