summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-30 20:51:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-01-30 20:51:31 (GMT)
commitf6671eb06fbbe1e79bae320b63c36543f88c7f11 (patch)
tree8bfc13979c6f827f1648c146734ec626a6882de6 /generic/tkTextIndex.c
parentaad931da362eb5989d4098353a10f94674c2e01b (diff)
parent0a085d9ed4007b80d00d1c4aebc1e57f9f7465f1 (diff)
downloadtk-f6671eb06fbbe1e79bae320b63c36543f88c7f11.zip
tk-f6671eb06fbbe1e79bae320b63c36543f88c7f11.tar.gz
tk-f6671eb06fbbe1e79bae320b63c36543f88c7f11.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tkTextIndex.c')
-rw-r--r--generic/tkTextIndex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c
index c05a9b7..ca54c9e 100644
--- a/generic/tkTextIndex.c
+++ b/generic/tkTextIndex.c
@@ -387,7 +387,7 @@ TkTextMakeByteIndex(
const TkText *textPtr,
int lineIndex, /* Index of desired line (0 means first line
* of text). */
- int byteIndex, /* Byte index of desired character. */
+ Tcl_Size byteIndex, /* Byte index of desired character. */
TkTextIndex *indexPtr) /* Structure to fill in. */
{
TkTextSegment *segPtr;
@@ -2457,7 +2457,7 @@ StartEnd(
indexPtr->byteIndex -= chSize;
}
offset -= chSize;
- if ((int)offset < 0) {
+ if (offset < 0) {
if (indexPtr->byteIndex == 0) {
goto done;
}