diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-30 10:36:06 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-30 10:36:06 (GMT) |
commit | 5cb9dc5ddc24459e55fab2188d60c867755e6f40 (patch) | |
tree | 82d82d4febde81e40c1598d9da74f99869f3ae71 /generic/tclCmdIL.c | |
parent | c157333a7dd73f35f1c2fe39b186e67ca1051659 (diff) | |
parent | dabfa1a0534f5b346196d940549d2f5bb859c7dd (diff) | |
download | tcl-5cb9dc5ddc24459e55fab2188d60c867755e6f40.zip tcl-5cb9dc5ddc24459e55fab2188d60c867755e6f40.tar.gz tcl-5cb9dc5ddc24459e55fab2188d60c867755e6f40.tar.bz2 |
Stop shimmering for "llength". Internal optimization (but using TIP #644)
Diffstat (limited to 'generic/tclCmdIL.c')
-rw-r--r-- | generic/tclCmdIL.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c index ea82388..552548b 100644 --- a/generic/tclCmdIL.c +++ b/generic/tclCmdIL.c @@ -2215,7 +2215,7 @@ Tcl_JoinObjCmd( * pointer to its array of element pointers. */ - if (TclHasInternalRep(objv[1],&tclArithSeriesType)) { + if (TclHasInternalRep(objv[1],&tclArithSeriesType.objType)) { isArithSeries = 1; listLen = TclArithSeriesObjLength(objv[1]); } else { @@ -2748,7 +2748,7 @@ Tcl_LrangeObjCmd( return result; } - if (TclHasInternalRep(objv[1],&tclArithSeriesType)) { + if (TclHasInternalRep(objv[1],&tclArithSeriesType.objType)) { Tcl_Obj *rangeObj; rangeObj = TclArithSeriesObjRange(interp, objv[1], first, last); if (rangeObj) { @@ -3147,7 +3147,7 @@ Tcl_LreverseObjCmd( * Handle ArithSeries special case - don't shimmer a series into a list * just to reverse it. */ - if (TclHasInternalRep(objv[1],&tclArithSeriesType)) { + if (TclHasInternalRep(objv[1],&tclArithSeriesType.objType)) { Tcl_Obj *resObj = TclArithSeriesObjReverse(interp, objv[1]); if (resObj) { Tcl_SetObjResult(interp, resObj); @@ -4733,7 +4733,7 @@ Tcl_LsortObjCmd( sortInfo.compareCmdPtr = newCommandPtr; } - if (TclHasInternalRep(listObj,&tclArithSeriesType)) { + if (TclHasInternalRep(listObj,&tclArithSeriesType.objType)) { sortInfo.resultCode = TclArithSeriesGetElements(interp, listObj, &length, &listObjPtrs); } else { |