Skip to content

Commit 7b88683

Browse files
YumeYukaShIroRRen
andcommitted
fix: 32-bit for Android
Co-Authored-By: 白彩恋 <169267914+shirorren@users.noreply.github.com>
1 parent 230e0cf commit 7b88683

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)