summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-18 16:24:41 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-18 16:24:41 (GMT)
commit8ce6115cf59c570acf00e2ac58a26235288ad90f (patch)
tree53e0377d639f50ca434d6a5a21691ddfb293f448
parent81060c07412ccbaaedbf1a76cd7291b26416a024 (diff)
downloadtcl-8ce6115cf59c570acf00e2ac58a26235288ad90f.zip
tcl-8ce6115cf59c570acf00e2ac58a26235288ad90f.tar.gz
tcl-8ce6115cf59c570acf00e2ac58a26235288ad90f.tar.bz2
3 times -1 -> TCL_INDEX_NONE
-rw-r--r--generic/tclCmdIL.c2
-rw-r--r--generic/tclCmdMZ.c2
-rw-r--r--generic/tclScan.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 6a81309..da8dc65 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -3514,7 +3514,7 @@ Tcl_LsearchObjCmd(
if (allMatches || inlineReturn) {
Tcl_ResetResult(interp);
} else {
- TclNewIntObj(itemPtr, -1);
+ TclNewIntObj(itemPtr, TCL_INDEX_NONE);
Tcl_SetObjResult(interp, itemPtr);
}
goto done;
diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c
index 6eb2954..c47490a 100644
--- a/generic/tclCmdMZ.c
+++ b/generic/tclCmdMZ.c
@@ -3778,7 +3778,7 @@ TclNRSwitchObjCmd(
TclNewIntObj(rangeObjAry[0], info.matches[j].start);
TclNewIntObj(rangeObjAry[1], info.matches[j].end-1);
} else {
- TclNewIntObj(rangeObjAry[1], -1);
+ TclNewIntObj(rangeObjAry[1], TCL_INDEX_NONE);
rangeObjAry[0] = rangeObjAry[1];
}
diff --git a/generic/tclScan.c b/generic/tclScan.c
index ee04165..67fe6f3 100644
--- a/generic/tclScan.c
+++ b/generic/tclScan.c
@@ -1089,7 +1089,7 @@ Tcl_ScanObjCmd(
if (code == TCL_OK) {
if (underflow && (nconversions == 0)) {
if (numVars) {
- TclNewIntObj(objPtr, -1);
+ TclNewIntObj(objPtr, TCL_INDEX_NONE);
} else {
if (objPtr) {
Tcl_SetListObj(objPtr, 0, NULL);