Skip to content

Commit 08a3453

Browse files
committed
iOS compilation fix
1 parent 20b3313 commit 08a3453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)