From 7b88683e10755674ae29016c4adc44be2ff74ec9 Mon Sep 17 00:00:00 2001 From: YumeYuka Date: Thu, 26 Mar 2026 22:02:30 +0800 Subject: [PATCH] fix: 32-bit for Android MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: 白彩恋 <169267914+shirorren@users.noreply.github.com> --- src/uu/wc/src/wc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/wc/src/wc.rs b/src/uu/wc/src/wc.rs index 0c09c2c3a43..eaabbce8c28 100644 --- a/src/uu/wc/src/wc.rs +++ b/src/uu/wc/src/wc.rs @@ -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) ) }