summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-22 19:47:38 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-22 19:47:38 +0000
commit058d0dab92a3fc8937bf2ce681e6ee2e23fa4e4f (patch)
tree4fe4616dce2c9eece76a35d5c845aea1add5067d /src
parentafa60ee222f6996534767bb395b9e0e6a63d03d0 (diff)
downloadcoreutils-058d0dab92a3fc8937bf2ce681e6ee2e23fa4e4f.tar.xz
(decode_switches): Don't compare a short value
to SIZE_MAX: GCC sometimes complains.
Diffstat (limited to 'src')
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ls.c b/src/ls.c
index f248ff7d9..f3d5e891a 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -1400,7 +1400,7 @@ decode_switches (int argc, char **argv)
struct winsize ws;
if (ioctl (STDOUT_FILENO, TIOCGWINSZ, &ws) != -1
- && 0 < ws.ws_col && ws.ws_col <= SIZE_MAX)
+ && 0 < ws.ws_col && ws.ws_col == (size_t) ws.ws_col)
line_length = ws.ws_col;
}
#endif