diff options
author | Jim Meyering <jim@meyering.net> | 2003-07-27 06:45:56 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-07-27 06:45:56 +0000 |
commit | 9ee5095608ee400767ed256a23c4ff28fa4b321a (patch) | |
tree | 17f71f9f1ee361495137e96cd0442e1e8bfbe797 /src | |
parent | 09f231aac34a112346264d2d6c7b16d89aa11d57 (diff) | |
download | coreutils-9ee5095608ee400767ed256a23c4ff28fa4b321a.tar.xz |
(is_printable_field): Simplify bit arithmetic.
Diffstat (limited to 'src')
-rw-r--r-- | src/cut.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -236,7 +236,7 @@ static inline bool is_printable_field (unsigned int i) { size_t n = i / CHAR_BIT; - return (printable_field[n] & (1 << (i % CHAR_BIT))) ? true : false; + return (printable_field[n] >> (i % CHAR_BIT)) & 1; } unsigned int |