1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-10 14:13:31 +02:00

(decode_switches): Don't compare a short value

to SIZE_MAX: GCC sometimes complains.
This commit is contained in:
Paul Eggert
2004-09-22 19:47:38 +00:00
parent afa60ee222
commit 058d0dab92

View File

@@ -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