diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-13 15:45:26 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-10-13 15:45:26 (GMT) |
commit | f70e1f98b3e5235a48e0fbea21515ed7e277e6cd (patch) | |
tree | 133785f8752974af168c2051003c99df65306c06 /generic/tclIORChan.c | |
parent | fe00b6dcf66b299d9ea42fa1f9a7282c6475159c (diff) | |
parent | 3fc1392c92078e35e6a35efc90ce598c1c2fc192 (diff) | |
download | tcl-f70e1f98b3e5235a48e0fbea21515ed7e277e6cd.zip tcl-f70e1f98b3e5235a48e0fbea21515ed7e277e6cd.tar.gz tcl-f70e1f98b3e5235a48e0fbea21515ed7e277e6cd.tar.bz2 |
Merge 8.6
Diffstat (limited to 'generic/tclIORChan.c')
-rw-r--r-- | generic/tclIORChan.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tclIORChan.c b/generic/tclIORChan.c index c622afa..7c4b038 100644 --- a/generic/tclIORChan.c +++ b/generic/tclIORChan.c @@ -1591,7 +1591,7 @@ ReflectSeekWide( Tcl_Preserve(rcPtr); - offObj = Tcl_NewWideIntObj(offset); + TclNewIntObj(offObj, offset); baseObj = Tcl_NewStringObj( (seekMode == SEEK_SET) ? "start" : (seekMode == SEEK_CUR) ? "current" : "end", -1); @@ -3052,7 +3052,7 @@ ForwardProc( TclNewIntObj(toReadObj, paramPtr->input.toRead); Tcl_IncrRefCount(toReadObj); - Tcl_Preserve(rcPtr); + Tcl_Preserve(rcPtr); if (InvokeTclMethod(rcPtr, METH_READ, toReadObj, NULL, &resObj)!=TCL_OK){ int code = ErrnoReturn(rcPtr, resObj); @@ -3127,7 +3127,9 @@ ForwardProc( } case ForwardedSeek: { - Tcl_Obj *offObj = Tcl_NewWideIntObj(paramPtr->seek.offset); + Tcl_Obj *offObj; + + TclNewIntObj(offObj, paramPtr->seek.offset); Tcl_Obj *baseObj = Tcl_NewStringObj( (paramPtr->seek.seekMode==SEEK_SET) ? "start" : (paramPtr->seek.seekMode==SEEK_CUR) ? "current" : "end", -1); |