Fix for when std::os::raw::c_char is u8 (armv7)

This commit is contained in:
Myron Ahn 2020-05-17 12:32:42 +07:00
parent dd3af090b7
commit d963bf97b7

View File

@ -141,7 +141,7 @@ fn test_c_call_r() {
}
let failure = unsafe { cxx_run_test() };
if !failure.is_null() {
let msg = unsafe { CStr::from_ptr(failure) };
let msg = unsafe { CStr::from_ptr(failure as *mut std::os::raw::c_char) };
eprintln!("{}", msg.to_string_lossy());
}
}