summaryrefslogtreecommitdiffstats
path: root/generic/tkOption.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-02-22 01:58:36 (GMT)
committerhobbs <hobbs>2002-02-22 01:58:36 (GMT)
commit5d7dc21d5dcc4ac242da18a351231d059aa18cc5 (patch)
tree498d608373f65fa7dd882e4761f1f5b86e819211 /generic/tkOption.c
parent8ff3bb17a699f97b4778141a328fa1b75ad7cfa7 (diff)
downloadtk-5d7dc21d5dcc4ac242da18a351231d059aa18cc5.zip
tk-5d7dc21d5dcc4ac242da18a351231d059aa18cc5.tar.gz
tk-5d7dc21d5dcc4ac242da18a351231d059aa18cc5.tar.bz2
* generic/tkOption.c (ReadOptionFile): fixed Tcl_Seek casting to
remove warnings (we expect no option files with be > 2GB).
Diffstat (limited to 'generic/tkOption.c')
-rw-r--r--generic/tkOption.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tkOption.c b/generic/tkOption.c
index 173eef0..624d8e5 100644
--- a/generic/tkOption.c
+++ b/generic/tkOption.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkOption.c,v 1.10 2002/01/25 21:09:37 dgp Exp $
+ * RCS: @(#) $Id: tkOption.c,v 1.11 2002/02/22 01:58:36 hobbs Exp $
*/
#include "tkPort.h"
@@ -1125,8 +1125,8 @@ ReadOptionFile(interp, tkwin, fileName, priority)
* overallocate if we are performing CRLF translation.
*/
- bufferSize = Tcl_Seek(chan, 0L, SEEK_END);
- (void) Tcl_Seek(chan, 0L, SEEK_SET);
+ bufferSize = (int) Tcl_Seek(chan, (Tcl_WideInt) 0, SEEK_END);
+ (void) Tcl_Seek(chan, (Tcl_WideInt) 0, SEEK_SET);
if (bufferSize < 0) {
Tcl_AppendResult(interp, "error seeking to end of file \"",