summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclCmdIL.c4
-rw-r--r--generic/tclExecute.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCmdIL.c b/generic/tclCmdIL.c
index 0723b40..9f4587c 100644
--- a/generic/tclCmdIL.c
+++ b/generic/tclCmdIL.c
@@ -3102,7 +3102,7 @@ Tcl_LreplaceObjCmd(
last = listLen - 1;
}
if (first <= last) {
- numToDelete = last - first + 1;
+ numToDelete = (unsigned)last - (unsigned)first + 1; /* See [3d3124d01d] */
} else {
numToDelete = 0;
}
@@ -5082,7 +5082,7 @@ Tcl_LeditObjCmd(
last = listLen - 1;
}
if (first <= last) {
- numToDelete = last - first + 1;
+ numToDelete = (unsigned)last - (unsigned)first + 1; /* See [3d3124d01d] */
} else {
numToDelete = 0;
}
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index 19f0980..e64e752 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -5293,7 +5293,7 @@ TEBCresume(
toIdx = length;
}
if (toIdx >= fromIdx) {
- numToDelete = toIdx - fromIdx + 1;
+ numToDelete = (unsigned)toIdx - (unsigned)fromIdx + 1; /* See [3d3124d01d] */
}
}