summaryrefslogtreecommitdiffstats
path: root/generic/tclCmdIL.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-30 10:36:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-30 10:36:06 (GMT)
commit5cb9dc5ddc24459e55fab2188d60c867755e6f40 (patch)
tree82d82d4febde81e40c1598d9da74f99869f3ae71 /generic/tclCmdIL.c
parentc157333a7dd73f35f1c2fe39b186e67ca1051659 (diff)
parentdabfa1a0534f5b346196d940549d2f5bb859c7dd (diff)
downloadtcl-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.c8
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 {