Skip to content

Commit 426f2fb

Browse files
authored
Rollup merge of rust-lang#132359 - mustartt:henry/match-libc-char-type, r=jieyouxu
Fix AIX libc call char type from i8 to u8 There was an update to AIX `libc` default char type from `i8 -> u8`, we should reflect that on the call site to satisfy the type checker. https://github.com/rust-lang/libc/blame/81f0cd3d9715e579c92063f78d0d14da85a31dd1/src/unix/aix/mod.rs#L1
2 parents 18e44f8 + a43a37c commit 426f2fb

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)