Archived
3
0

0.1.2: removed #[no_mangle] for exit function to fix stack overflow

This commit is contained in:
2023-01-17 14:43:20 -05:00
parent 9253c72c06
commit 0fa42e74e1
2 changed files with 2 additions and 6 deletions

View File

@@ -15,7 +15,6 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
extern crate core;
#[no_mangle]
pub fn exit(code: u32) -> ! {
unsafe { libc::exit(code as u16 as i16 as libc::c_int) }
unsafe { libc::exit(code as i32 as libc::c_int); }
}