Skip to content

Commit a43a37c

Browse files
committed
fix libc call from i8 to u8
1 parent 298c746 commit a43a37c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_session/src/filesearch.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ fn current_dll_path() -> Result<PathBuf, String> {
8484
loop {
8585
if libc::loadquery(
8686
libc::L_GETINFO,
87-
buffer.as_mut_ptr() as *mut i8,
87+
buffer.as_mut_ptr() as *mut u8,
8888
(std::mem::size_of::<libc::ld_info>() * buffer.len()) as u32,
8989
) >= 0
9090
{

0 commit comments

Comments
 (0)