| commit | d963bf97b78a53a09a034eb635f27d285b914387 | [log] [tgz] |
|---|---|---|
| author | Myron Ahn <myronahn@gmail.com> | Sun May 17 12:32:42 2020 +0700 |
| committer | Myron Ahn <myronahn@gmail.com> | Sun May 17 12:32:42 2020 +0700 |
| tree | 7514f9ada562abf3d92b31c56d20fca19d5a4c55 | |
| parent | dd3af090b78e861a786a6d9056ce60a0b6aa6854 [diff] [blame] |
Fix for when std::os::raw::c_char is u8 (armv7)
diff --git a/tests/test.rs b/tests/test.rs index ddf8f70..91bd25e 100644 --- a/tests/test.rs +++ b/tests/test.rs
@@ -141,7 +141,7 @@ } 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()); } }