summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
authorandreask@activestate.com <andreas_kupries>2008-05-23 21:00:42 (GMT)
committerandreask@activestate.com <andreas_kupries>2008-05-23 21:00:42 (GMT)
commit632d6bb91f7ea619f77d6ecb46b279ff25c7a941 (patch)
tree790b682b0a84cd68f66fcb8593ecfeb7cd290440 /win/tclWinChan.c
parent592845f8c5e7ae1f80acb159916da97dc3cebffa (diff)
downloadtcl-632d6bb91f7ea619f77d6ecb46b279ff25c7a941.zip
tcl-632d6bb91f7ea619f77d6ecb46b279ff25c7a941.tar.gz
tcl-632d6bb91f7ea619f77d6ecb46b279ff25c7a941.tar.bz2
* win/tclWinChan.c (FileWideSeekProc): Accepted a patch by
Alexandre Ferrieux <ferrieux@users.sourceforge.net> to fix the [Bug 1965787]. 'tell' now works for locations > 2 GB as well instead of going negative. * generic/tclIO.c (Tcl_SetChannelBufferSize): Accepted a patch by * tests/io.test: Alexandre Ferrieux <ferrieux@users.sourceforge.net> * tests/chanio.test: to fix the [Bug 1969953]. Buffersize outside of the supported range are now clipped to nearest boundary instead of ignored.
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index 98a529a..5d2a774 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinChan.c,v 1.50 2008/04/27 22:21:36 dkf Exp $
+ * RCS: @(#) $Id: tclWinChan.c,v 1.51 2008/05/23 21:00:47 andreas_kupries Exp $
*/
#include "tclWinInt.h"
@@ -575,7 +575,7 @@ FileWideSeekProc(
return -1;
}
}
- return (Tcl_LongAsWide(newPos) | (Tcl_LongAsWide(newPosHigh) << 32));
+ return (((Tcl_WideInt)((unsigned)newPos)) | (Tcl_LongAsWide(newPosHigh) << 32));
}
/*