Skip to content

Commit d153f36

Browse files
authored
Merge pull request rust-lang#256 from Wind-River/master
cast libc::VX_RTP_NAME_LENGTH to usize as it's type has been change t…
2 parents 7735717 + edcc964 commit d153f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/symbolize/libbacktrace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ unsafe fn init_state() -> *mut bt::backtrace_state {
405405
use libc;
406406
use core::mem;
407407

408-
const N: usize = libc::VX_RTP_NAME_LENGTH + 1;
408+
const N: usize = libc::VX_RTP_NAME_LENGTH as usize + 1;
409409
static mut BUF: [libc::c_char; N] = [0; N];
410410

411411
let mut rtp_desc : libc::RTP_DESC = mem::zeroed();

0 commit comments

Comments
 (0)