summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-13 11:08:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-13 11:08:43 (GMT)
commite5911fc28addfa5931e635b42d632041b97fc64b (patch)
tree81604e29e606f630f047e2001c8e1d861a572328 /generic/tkTextIndex.c
parent1d77f513393ecc37d1efacceb5c9ee77eebe8c3b (diff)
parentd69df857209ab9c3bb83b05151421e67508b20df (diff)
downloadtk-e5911fc28addfa5931e635b42d632041b97fc64b.zip
tk-e5911fc28addfa5931e635b42d632041b97fc64b.tar.gz
tk-e5911fc28addfa5931e635b42d632041b97fc64b.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tkTextIndex.c')
-rw-r--r--generic/tkTextIndex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c
index 14e9106..d6710b8 100644
--- a/generic/tkTextIndex.c
+++ b/generic/tkTextIndex.c
@@ -1142,7 +1142,7 @@ TkTextPrintIndex(
charIndex += numBytes;
}
- return snprintf(string, TK_POS_CHARS, "%d.%d",
+ return snprintf(string, TK_POS_CHARS, "%d.%" TCL_SIZE_MODIFIER "d",
TkBTreeLinesTo(textPtr, indexPtr->linePtr) + 1, charIndex);
}