Skip to content
Snippets Groups Projects
Commit f2851286 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'asctime-char-cast' into 'master'

Avoid assuming c_char is i8 in asctime()

See merge request !307
parents dd193bcb 23b2eb25
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ pub struct sigevent; ...@@ -72,7 +72,7 @@ pub struct sigevent;
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn asctime(timeptr: *const tm) -> *mut c_char { 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] #[no_mangle]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment