1
Fork 0

Use less size_t casts in libstd since it's now defined as usize

This commit is contained in:
Tobias Bucher 2016-10-08 15:48:28 +02:00
parent e51190cf07
commit 717d2ddca7
8 changed files with 32 additions and 38 deletions

View file

@ -83,7 +83,7 @@ pub fn init() {
unsafe {
libc::write(libc::STDERR_FILENO,
msg.as_ptr() as *const libc::c_void,
msg.len() as libc::size_t);
msg.len());
intrinsics::abort();
}
}