about summary refs log tree commit diff
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-10-30 22:22:06 +0800
committerGitHub <noreply@github.com>2024-10-30 22:22:06 +0800
commit426f2fbbe2b9a300b2afa9bc68ed30d95ad96ce8 (patch)
tree22a1351dd832e6bd6f1c1b5853e5da6248f15365
parent18e44f89bf97dfd5e7bf42bb3c6965650b565c16 (diff)
parenta43a37c706890aa6d7e1a01a021e8e5b3d6341b8 (diff)
downloadrust-426f2fbbe2b9a300b2afa9bc68ed30d95ad96ce8.tar.gz
rust-426f2fbbe2b9a300b2afa9bc68ed30d95ad96ce8.zip
Rollup merge of #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
-rw-r--r--compiler/rustc_session/src/filesearch.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/filesearch.rs b/compiler/rustc_session/src/filesearch.rs
index 4aae2649843..b3e3381d986 100644
--- a/compiler/rustc_session/src/filesearch.rs
+++ b/compiler/rustc_session/src/filesearch.rs
@@ -84,7 +84,7 @@ fn current_dll_path() -> Result<PathBuf, String> {
         loop {
             if libc::loadquery(
                 libc::L_GETINFO,
-                buffer.as_mut_ptr() as *mut i8,
+                buffer.as_mut_ptr() as *mut u8,
                 (std::mem::size_of::<libc::ld_info>() * buffer.len()) as u32,
             ) >= 0
             {