diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-09-13 20:52:48 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-09-13 20:52:48 (GMT) |
| commit | 69eafefa7681f398b727edb23c3e44a43c40de3c (patch) | |
| tree | dc7133dc0cc04c964ccb13aaced1b77d74585728 /unix | |
| parent | 2154b6c5ba00cfe39c12276f046c9411383abf78 (diff) | |
| parent | 73e0989e22d41d6dd5e0122915888cd917acfa4a (diff) | |
| download | tcl-69eafefa7681f398b727edb23c3e44a43c40de3c.zip tcl-69eafefa7681f398b727edb23c3e44a43c40de3c.tar.gz tcl-69eafefa7681f398b727edb23c3e44a43c40de3c.tar.bz2 | |
merge trunk
Diffstat (limited to 'unix')
| -rw-r--r-- | unix/tclUnixChan.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index 418431f..04bb28c 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; } /* |
