Skip to content

Commit ff89074

Browse files
YumeYukaShIroRRen
andauthored
wc: fix for 32-bit Android (#11452)
Co-authored-by: 白彩恋 <169267914+shirorren@users.noreply.github.com>
1 parent 6e18efb commit ff89074

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/uu/wc/src/wc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ fn is_stdin_small_file() -> bool {
302302

303303
matches!(
304304
stat::fstat(io::stdin().as_fd()),
305-
Ok(meta) if meta.st_mode & libc::S_IFMT == libc::S_IFREG && meta.st_size <= (10 << 20)
305+
Ok(meta) if meta.st_mode as libc::mode_t & libc::S_IFMT == libc::S_IFREG && meta.st_size <= (10 << 20)
306306
)
307307
}
308308

0 commit comments

Comments
 (0)