0.1.2: removed #[no_mangle] for exit function to fix stack overflow
This commit is contained in:
@@ -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); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user