mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
fix linker c_char mismatched types build error
This commit is contained in:
parent
ab98c22b73
commit
5aa2a1eae6
1 changed files with 1 additions and 1 deletions
|
@ -673,7 +673,7 @@ fn preprocess_impl(
|
|||
)
|
||||
.unwrap(),
|
||||
) as usize;
|
||||
let c_buf: *const c_char = dynstr_data[dynstr_off..].as_ptr() as *const i8;
|
||||
let c_buf: *const c_char = dynstr_data[dynstr_off..].as_ptr() as *const c_char;
|
||||
let c_str = unsafe { CStr::from_ptr(c_buf) }.to_str().unwrap();
|
||||
if Path::new(c_str).file_name().unwrap().to_str().unwrap() == shared_lib_name {
|
||||
shared_lib_index = Some(dyn_lib_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue