diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-05-21 14:37:57 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-05-21 14:37:57 (GMT) |
commit | 550f78e490719e4b5eaab09efdf219df2330be20 (patch) | |
tree | 5bee7aeab491e03e6640691d22670a9efe7fe05c | |
parent | 69c75114013bbd847b7956f6bf3cd1e432760c18 (diff) | |
download | tcl-550f78e490719e4b5eaab09efdf219df2330be20.zip tcl-550f78e490719e4b5eaab09efdf219df2330be20.tar.gz tcl-550f78e490719e4b5eaab09efdf219df2330be20.tar.bz2 |
Fix gcc warning (signed-unsigned compare)
-rw-r--r-- | generic/tclIO.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index c6bb5e3..0c13bc0 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.c @@ -5797,7 +5797,7 @@ ReadChars( * for sizing receiving buffers. */ - int toRead = ((unsigned) charsToRead > srcLen) ? srcLen : charsToRead; + int toRead = ((charsToRead<0)||(charsToRead > srcLen)) ? srcLen : charsToRead; /* * 'factor' is how much we guess that the bytes in the source buffer will |