Skip to content

Commit 19a44c7

Browse files
committed
auto merge of #16647 : vhbit/rust/ios-build-fixes, r=alexcrichton
2 parents 5fe5e39 + 69fbef1 commit 19a44c7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/librustrt/unwind.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,10 @@ pub mod eabi {
333333
uw::_URC_HANDLER_FOUND // catch!
334334
}
335335
else { // cleanup phase
336-
uw::_URC_INSTALL_CONTEXT
336+
unsafe {
337+
__gcc_personality_sj0(_version, actions, _exception_class, _ue_header,
338+
_context)
339+
}
337340
}
338341
}
339342
}

src/libstd/rt/backtrace.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ mod imp {
273273

274274
try!(writeln!(w, "stack backtrace:"));
275275
// 100 lines should be enough
276-
static SIZE: libc::c_int = 100;
276+
static SIZE: uint = 100;
277277
let mut buf: [*mut libc::c_void, ..SIZE] = unsafe {mem::zeroed()};
278-
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE) as uint};
278+
let cnt = unsafe { backtrace(buf.as_mut_ptr(), SIZE as libc::c_int) as uint};
279279

280280
// skipping the first one as it is write itself
281281
result::fold_(range(1, cnt).map(|i| {

0 commit comments

Comments
 (0)