summaryrefslogtreecommitdiffstats
path: root/generic/tclZlib.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-06 18:33:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-10-06 18:33:42 (GMT)
commitd84d03b91a4eb72f88b56011713706a6f36bc17c (patch)
tree8d86b9a8044525f895b7f513cfd5e0c2ddf17317 /generic/tclZlib.c
parent9c4ab4170b0931623c0a2939bb10462caf63a480 (diff)
parenta51d80f377b33a38caf0a483b4b12bd494698f7f (diff)
downloadtcl-d84d03b91a4eb72f88b56011713706a6f36bc17c.zip
tcl-d84d03b91a4eb72f88b56011713706a6f36bc17c.tar.gz
tcl-d84d03b91a4eb72f88b56011713706a6f36bc17c.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclZlib.c')
-rw-r--r--generic/tclZlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index 48a516d..d05d774 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -2940,7 +2940,7 @@ ZlibTransformClose(
result = TCL_ERROR;
break;
}
- if (written && Tcl_WriteRaw(cd->parent, cd->outBuffer, written) == (size_t)-1) {
+ if (written && Tcl_WriteRaw(cd->parent, cd->outBuffer, written) == TCL_IO_FAILURE) {
/* TODO: is this the right way to do errors on close?
* Note: when close is called from FinalizeIOSubsystem then
* interp may be NULL */
@@ -3140,7 +3140,7 @@ ZlibTransformOutput(
break;
}
- if (Tcl_WriteRaw(cd->parent, cd->outBuffer, produced) == (size_t)-1) {
+ if (Tcl_WriteRaw(cd->parent, cd->outBuffer, produced) == TCL_IO_FAILURE) {
*errorCodePtr = Tcl_GetErrno();
return -1;
}
@@ -3197,7 +3197,7 @@ ZlibTransformFlush(
* Write the bytes we've received to the next layer.
*/
- if (len > 0 && Tcl_WriteRaw(cd->parent, cd->outBuffer, len) == (size_t)-1) {
+ if (len > 0 && Tcl_WriteRaw(cd->parent, cd->outBuffer, len) == TCL_IO_FAILURE) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"problem flushing channel: %s",
Tcl_PosixError(interp)));