diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-05-28 13:24:18 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-05-28 13:24:18 (GMT) |
| commit | 495bb46333ea6637bcaff2ee8ae1a04cb49c7167 (patch) | |
| tree | 576e6e15083909a8c1e47c0b683fa910e81bedd4 /generic/tclIO.c | |
| parent | 743451a5f564b80d1b34b0f8b89f7e588b655bc1 (diff) | |
| parent | 3c9afb84b465cad732d774168b33decefa3d025e (diff) | |
| download | tcl-495bb46333ea6637bcaff2ee8ae1a04cb49c7167.zip tcl-495bb46333ea6637bcaff2ee8ae1a04cb49c7167.tar.gz tcl-495bb46333ea6637bcaff2ee8ae1a04cb49c7167.tar.bz2 | |
Merge 8.7
Diffstat (limited to 'generic/tclIO.c')
| -rw-r--r-- | generic/tclIO.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclIO.c b/generic/tclIO.c index e899635..d3f397b 100644 --- a/generic/tclIO.c +++ b/generic/tclIO.c @@ -9430,7 +9430,7 @@ TclCopyChannel( csPtr->readFlags = readFlags; csPtr->writeFlags = writeFlags; csPtr->toRead = toRead; - csPtr->total = (Tcl_WideInt) 0; + csPtr->total = 0; csPtr->interp = interp; if (cmdPtr) { Tcl_IncrRefCount(cmdPtr); @@ -9753,7 +9753,7 @@ CopyData( Tcl_IncrRefCount(bufObj); } - while (csPtr->toRead != (Tcl_WideInt) 0) { + while (csPtr->toRead != 0) { /* * Check for unreported background errors. */ @@ -9792,8 +9792,8 @@ CopyData( * Read up to bufSize characters. */ - if ((csPtr->toRead == (Tcl_WideInt) -1) - || (csPtr->toRead > (Tcl_WideInt) csPtr->bufSize)) { + if ((csPtr->toRead == -1) + || (csPtr->toRead > (Tcl_WideInt)csPtr->bufSize)) { sizeb = csPtr->bufSize; } else { sizeb = csPtr->toRead; |
