diff options
| author | Taiki Endo <te316e89@gmail.com> | 2024-03-24 17:26:48 +0900 |
|---|---|---|
| committer | Taiki Endo <te316e89@gmail.com> | 2024-03-24 17:26:48 +0900 |
| commit | 7aa76a7ac31d978bf0a80e304b39e43bd1b34547 (patch) | |
| tree | de2b1df0df344aa7a6d7cfc88ce4f4ccd52f1fd5 | |
| parent | 548e14b43963882fb758deb89e8258d9b8c2fc2a (diff) | |
| download | rust-7aa76a7ac31d978bf0a80e304b39e43bd1b34547.tar.gz rust-7aa76a7ac31d978bf0a80e304b39e43bd1b34547.zip | |
Fix build failure on ARM/AArch64/PowerPC/RISC-V FreeBSD/NetBSD
| -rw-r--r-- | library/std/src/sys/pal/unix/net.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/net.rs b/library/std/src/sys/pal/unix/net.rs index 1f140f7844f..9a0a1b18aee 100644 --- a/library/std/src/sys/pal/unix/net.rs +++ b/library/std/src/sys/pal/unix/net.rs @@ -459,7 +459,7 @@ impl Socket { const AF_NAME_MAX: usize = 16; let mut buf = [0; AF_NAME_MAX]; for (src, dst) in name.to_bytes().iter().zip(&mut buf[..AF_NAME_MAX - 1]) { - *dst = *src as i8; + *dst = *src as libc::c_char; } let mut arg: libc::accept_filter_arg = unsafe { mem::zeroed() }; arg.af_name = buf; |
