summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixChan.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-22 12:45:29 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2018-09-22 12:45:29 (GMT)
commit4ec357c743c86d6cd7dbf94054c2b66def6c6a00 (patch)
tree8a1fb864655c81dc16733222a1a65e439ca7236d /unix/tclUnixChan.c
parenta35eba4ac2e23800d47d68082e021625d36ba47f (diff)
parent31b9d1f712fb47f0376a53db5d67d5c2c844d0ce (diff)
downloadtcl-4ec357c743c86d6cd7dbf94054c2b66def6c6a00.zip
tcl-4ec357c743c86d6cd7dbf94054c2b66def6c6a00.tar.gz
tcl-4ec357c743c86d6cd7dbf94054c2b66def6c6a00.tar.bz2
merge 8.7
Diffstat (limited to 'unix/tclUnixChan.c')
-rw-r--r--unix/tclUnixChan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c
index ced684a..435579a 100644
--- a/unix/tclUnixChan.c
+++ b/unix/tclUnixChan.c
@@ -383,7 +383,7 @@ FileSeekProc(
*/
oldLoc = TclOSseek(fsPtr->fd, (Tcl_SeekOffset) 0, SEEK_CUR);
- if (oldLoc == Tcl_LongAsWide(-1)) {
+ if (oldLoc == -1) {
/*
* Bad things are happening. Error out...
*/
@@ -398,14 +398,14 @@ FileSeekProc(
* Check for expressability in our return type, and roll-back otherwise.
*/
- if (newLoc > Tcl_LongAsWide(INT_MAX)) {
+ if (newLoc > INT_MAX) {
*errorCodePtr = EOVERFLOW;
TclOSseek(fsPtr->fd, (Tcl_SeekOffset) oldLoc, SEEK_SET);
return -1;
} else {
- *errorCodePtr = (newLoc == Tcl_LongAsWide(-1)) ? errno : 0;
+ *errorCodePtr = (newLoc == -1) ? errno : 0;
}
- return (int) Tcl_WideAsLong(newLoc);
+ return (int) newLoc;
}
/*