summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index cabe3e5..b515e37 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -275,7 +275,7 @@ FileInputProc(
*/
bytesRead = read(fsPtr->fd, buf, toRead);
- if (bytesRead > -1) {
+ if (bytesRead >= 0) {
return bytesRead;
}
*errorCodePtr = errno;
@@ -322,7 +322,7 @@ FileOutputProc(
return 0;
}
written = write(fsPtr->fd, buf, toWrite);
- if (written > -1) {
+ if (written >= 0) {
return written;
}
*errorCodePtr = errno;