summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXScrlbr.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-07-08 07:54:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-07-08 07:54:08 (GMT)
commit973b6e6d17b26ec027eb3b6df3b37d9da9d9f514 (patch)
tree16cd8e062060db885208ea156a7c74aa9751ee83 /macosx/tkMacOSXScrlbr.c
parent649ce6ba5bb32fc38e88fc8f4ac13359651d1d32 (diff)
downloadtk-973b6e6d17b26ec027eb3b6df3b37d9da9d9f514.zip
tk-973b6e6d17b26ec027eb3b6df3b37d9da9d9f514.tar.gz
tk-973b6e6d17b26ec027eb3b6df3b37d9da9d9f514.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.c2
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;