summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-13 11:08:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-13 11:08:01 (GMT)
commitd69df857209ab9c3bb83b05151421e67508b20df (patch)
treec22dc994c16a149a0ef0a9052b03d0d74b7cbd01 /generic/tkTextIndex.c
parentf319a44dc9c325f81539512a339220e925652214 (diff)
downloadtk-d69df857209ab9c3bb83b05151421e67508b20df.zip
tk-d69df857209ab9c3bb83b05151421e67508b20df.tar.gz
tk-d69df857209ab9c3bb83b05151421e67508b20df.tar.bz2
Fix 2 (minor) compiler warnings
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 c59f13e..c08c12c 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);
}