diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-12-13 11:08:01 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-12-13 11:08:01 (GMT) |
commit | d69df857209ab9c3bb83b05151421e67508b20df (patch) | |
tree | c22dc994c16a149a0ef0a9052b03d0d74b7cbd01 /generic/tkTextIndex.c | |
parent | f319a44dc9c325f81539512a339220e925652214 (diff) | |
download | tk-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.c | 2 |
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); } |