diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-01 12:07:58 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-11-01 12:07:58 (GMT) |
commit | a258147781b4e2d2fad38bdf17bf559c21ed13ff (patch) | |
tree | 0b575b566b1c2679a5c81dd723706b05fd629571 /generic/tkTextIndex.c | |
parent | af9f86ade535b918b52fbbf6181fa43f60529779 (diff) | |
download | tk-a258147781b4e2d2fad38bdf17bf559c21ed13ff.zip tk-a258147781b4e2d2fad38bdf17bf559c21ed13ff.tar.gz tk-a258147781b4e2d2fad38bdf17bf559c21ed13ff.tar.bz2 |
Allow TkTextSegToOffset to return a Tcl_Size. Make undoMarkId last field of TkSharedText (for binary compatibility with Tk 8.6)
Diffstat (limited to 'generic/tkTextIndex.c')
-rw-r--r-- | generic/tkTextIndex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c index 83db999..dd179e8 100644 --- a/generic/tkTextIndex.c +++ b/generic/tkTextIndex.c @@ -608,13 +608,13 @@ TkTextIndexToSeg( *--------------------------------------------------------------------------- */ -int +Tcl_Size TkTextSegToOffset( const TkTextSegment *segPtr,/* Segment whose offset is desired. */ const TkTextLine *linePtr) /* Line containing segPtr. */ { const TkTextSegment *segPtr2; - int offset = 0; + Tcl_Size offset = 0; for (segPtr2 = linePtr->segPtr; segPtr2 != segPtr; segPtr2 = segPtr2->nextPtr) { |