Browse Source

Merge pull request #20 from rust3ds/refresh

Update to latest ctru-sys and toolchain
pull/22/head
Meziu 2 years ago committed by GitHub
parent
commit
a55ab0584c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/lib.rs
  2. 2
      src/thread.rs

2
src/lib.rs

@ -1,6 +1,4 @@
#![feature(thread_local)] #![feature(thread_local)]
#![feature(const_btree_new)]
#![feature(let_else)]
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
#![allow(clippy::missing_safety_doc)] #![allow(clippy::missing_safety_doc)]

2
src/thread.rs

@ -56,7 +56,7 @@ pub unsafe extern "C" fn pthread_create(
value: *mut libc::c_void, value: *mut libc::c_void,
) -> libc::c_int { ) -> libc::c_int {
let attr = attr as *const PThreadAttr; let attr = attr as *const PThreadAttr;
let stack_size = (*attr).stack_size as ctru_sys::size_t; let stack_size = (*attr).stack_size;
let priority = (*attr).priority; let priority = (*attr).priority;
let processor_id = (*attr).processor_id; let processor_id = (*attr).processor_id;

Loading…
Cancel
Save