melib/datetime: use type alias for c_char
On arm64, it's u8, not i8. Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>pull/318/head
parent
71f3ffe740
commit
63a63253d7
|
@ -790,7 +790,9 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn test_datetime_rfcs() {
|
||||
if unsafe { libc::setlocale(libc::LC_ALL, b"\0".as_ptr() as *const i8) }.is_null() {
|
||||
if unsafe { libc::setlocale(libc::LC_ALL, b"\0".as_ptr() as *const core::ffi::c_char) }
|
||||
.is_null()
|
||||
{
|
||||
eprintln!("Unable to set locale.");
|
||||
}
|
||||
/* Some tests were lazily stolen from https://rachelbythebay.com/w/2013/06/11/time/ */
|
||||
|
|
Loading…
Reference in New Issue