Avoid assuming c_char is i8

This commit is contained in:
Peter Limkilde Svendsen
2020-08-23 21:40:32 +02:00
parent 5af8e3ca35
commit 23b2eb2573
+1 -1
View File
@@ -72,7 +72,7 @@ pub struct sigevent;
#[no_mangle]
pub unsafe extern "C" fn asctime(timeptr: *const tm) -> *mut c_char {
asctime_r(timeptr, &mut ASCTIME as *mut [i8; 26] as *mut i8)
asctime_r(timeptr, ASCTIME.as_mut_ptr().cast())
}
#[no_mangle]