diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-07-08 07:54:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-07-08 07:54:08 (GMT) |
commit | fb0412fbc771a2cf70a27c5c4867f4fe1b6ecad1 (patch) | |
tree | 16cd8e062060db885208ea156a7c74aa9751ee83 /macosx/tkMacOSXScrlbr.c | |
parent | b8a9fa274d90f1cd1beff06bd4c02f6e5719bfbb (diff) | |
download | tk-fb0412fbc771a2cf70a27c5c4867f4fe1b6ecad1.zip tk-fb0412fbc771a2cf70a27c5c4867f4fe1b6ecad1.tar.gz tk-fb0412fbc771a2cf70a27c5c4867f4fe1b6ecad1.tar.bz2 |
Use size_t in stead of int for some internal refCount variables. On 32-bit systems, this doubles the range (as size_t is unsigned), on 64-bit system much more than that.
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r-- | macosx/tkMacOSXScrlbr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c index 37178ed..91cf112 100644 --- a/macosx/tkMacOSXScrlbr.c +++ b/macosx/tkMacOSXScrlbr.c @@ -384,7 +384,7 @@ TkpScrollbarPosition( x = y; y = tmp; length = Tk_Width(scrollPtr->tkwin); - fieldlength = length - 2 * arrowSize; + fieldlength = length - 2 * arrowSize; width = Tk_Height(scrollPtr->tkwin); } fieldlength = fieldlength < 0 ? 0 : fieldlength; |