We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b3313 commit 08a3453Copy full SHA for 08a3453
src/libstd/rt/backtrace.rs
@@ -273,9 +273,9 @@ mod imp {
273
274
try!(writeln!(w, "stack backtrace:"));
275
// 100 lines should be enough
276
- static SIZE: libc::c_int = 100;
+ static SIZE: uint = 100;
277
let mut buf: [*mut libc::c_void, ..SIZE] = unsafe {mem::zeroed()};
278
- 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};
279
280
// skipping the first one as it is write itself
281
result::fold_(range(1, cnt).map(|i| {
0 commit comments