diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-09-13 20:52:12 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2018-09-13 20:52:12 (GMT) |
| commit | 73e0989e22d41d6dd5e0122915888cd917acfa4a (patch) | |
| tree | 51632885f75c2f3e73d93a13e2f4f9e763d3f6eb /unix/tclUnixChan.c | |
| parent | 004ac149736cb1946700fee0e64a362f4d48dae3 (diff) | |
| parent | bd42171094d5ada2e2e46978f2e842a66b6fa44e (diff) | |
| download | tcl-73e0989e22d41d6dd5e0122915888cd917acfa4a.zip tcl-73e0989e22d41d6dd5e0122915888cd917acfa4a.tar.gz tcl-73e0989e22d41d6dd5e0122915888cd917acfa4a.tar.bz2 | |
merge 8.7
Diffstat (limited to 'unix/tclUnixChan.c')
| -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 6eed23b..a507bf0 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; } /* |
