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.

81f0cd3d97/src/unix/aix/mod.rs (L1)
This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-10-30 22:22:06 +08:00 committed by GitHub
commit 426f2fbbe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
{