auto merge of #16647 : vhbit/rust/ios-build-fixes, r=alexcrichton

This commit is contained in:
bors 2014-08-22 09:05:53 +00:00
commit 19a44c73c2
2 changed files with 6 additions and 3 deletions

View File

@ -333,7 +333,10 @@ pub mod eabi {
uw::_URC_HANDLER_FOUND // catch!
}
else { // cleanup phase
uw::_URC_INSTALL_CONTEXT
unsafe {
__gcc_personality_sj0(_version, actions, _exception_class, _ue_header,
_context)
}
}
}
}

View File

@ -273,9 +273,9 @@ mod imp {
try!(writeln!(w, "stack backtrace:"));
// 100 lines should be enough
static SIZE: libc::c_int = 100;
static SIZE: uint = 100;
let mut buf: [*mut libc::c_void, ..SIZE] = unsafe {mem::zeroed()};
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE) as uint};
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE as libc::c_int) as uint};
// skipping the first one as it is write itself
result::fold_(range(1, cnt).map(|i| {