wc: fix for 32-bit Android (#11452)

Co-authored-by: 白彩恋 <169267914+shirorren@users.noreply.github.com>
This commit is contained in:
夢璃酱
2026-03-31 15:03:22 +02:00
committed by GitHub
co-authored by 白彩恋
parent 6e18efb218
commit ff890746e5
+1 -1
View File
@@ -302,7 +302,7 @@ fn is_stdin_small_file() -> bool {
matches!(
stat::fstat(io::stdin().as_fd()),
Ok(meta) if meta.st_mode & libc::S_IFMT == libc::S_IFREG && meta.st_size <= (10 << 20)
Ok(meta) if meta.st_mode as libc::mode_t & libc::S_IFMT == libc::S_IFREG && meta.st_size <= (10 << 20)
)
}