summaryrefslogtreecommitdiffstats
path: root/generic/tclIORChan.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-10 14:16:00 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-02-10 14:16:00 (GMT)
commit1f35ddfe6233a4a056ba3c4e67a4a7563f6d681f (patch)
tree3afe4b5df55ecf6a66c76c924335bff13b9c2658 /generic/tclIORChan.c
parent110e6cae5e332cfbbbf35253b9dea01162a96975 (diff)
downloadtcl-1f35ddfe6233a4a056ba3c4e67a4a7563f6d681f.zip
tcl-1f35ddfe6233a4a056ba3c4e67a4a7563f6d681f.tar.gz
tcl-1f35ddfe6233a4a056ba3c4e67a4a7563f6d681f.tar.bz2
Use Tcl_NewWideIntObj() for values that might be bigger than 32-bit
Diffstat (limited to 'generic/tclIORChan.c')
-rw-r--r--generic/tclIORChan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c
index 2e25182..3e2bcbe 100644
--- a/generic/tclIORChan.c
+++ b/generic/tclIORChan.c
@@ -2111,7 +2111,7 @@ ReflectTruncate(
Tcl_Preserve(rcPtr);
- lenObj = Tcl_NewIntObj(length);
+ lenObj = Tcl_NewWideIntObj(length);
Tcl_IncrRefCount(lenObj);
if (InvokeTclMethod(rcPtr,METH_TRUNCATE,lenObj,NULL,&resObj)!=TCL_OK) {
@@ -3361,7 +3361,7 @@ ForwardProc(
break;
case ForwardedTruncate: {
- Tcl_Obj *lenObj = Tcl_NewIntObj(paramPtr->truncate.length);
+ Tcl_Obj *lenObj = Tcl_NewWideIntObj(paramPtr->truncate.length);
Tcl_IncrRefCount(lenObj);
Tcl_Preserve(rcPtr);