summaryrefslogtreecommitdiffstats
path: root/unix/tkUnixScale.c
diff options
context:
space:
mode:
authorhobbs <hobbs>2001-09-21 21:34:10 (GMT)
committerhobbs <hobbs>2001-09-21 21:34:10 (GMT)
commit412b35142e73d8049d527706ee3da7c144699e53 (patch)
tree583cc81aad13aec41709aa168d6716a5ab8c4b0a /unix/tkUnixScale.c
parent30d712282f4193c9a32da3dc31aef38bdca5ab22 (diff)
downloadtk-412b35142e73d8049d527706ee3da7c144699e53.zip
tk-412b35142e73d8049d527706ee3da7c144699e53.tar.gz
tk-412b35142e73d8049d527706ee3da7c144699e53.tar.bz2
minor cast fixes to prevent 64bit warnings
Diffstat (limited to 'unix/tkUnixScale.c')
-rw-r--r--unix/tkUnixScale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/tkUnixScale.c b/unix/tkUnixScale.c
index 8cda9cc..f8d3313 100644
--- a/unix/tkUnixScale.c
+++ b/unix/tkUnixScale.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixScale.c,v 1.7 2001/07/03 06:08:33 hobbs Exp $
+ * RCS: @(#) $Id: tkUnixScale.c,v 1.8 2001/09/21 21:34:10 hobbs Exp $
*/
#include "tkScale.h"
@@ -271,7 +271,7 @@ DisplayVerticalValue(scalePtr, drawable, value, rightEdge)
Tk_GetFontMetrics(scalePtr->tkfont, &fm);
y = TkScaleValueToPixel(scalePtr, value) + fm.ascent/2;
sprintf(valueString, scalePtr->format, value);
- length = strlen(valueString);
+ length = (int) strlen(valueString);
width = Tk_TextWidth(scalePtr->tkfont, valueString, length);
/*
@@ -488,7 +488,7 @@ DisplayHorizontalValue(scalePtr, drawable, value, top)
Tk_GetFontMetrics(scalePtr->tkfont, &fm);
y = top + fm.ascent;
sprintf(valueString, scalePtr->format, value);
- length = strlen(valueString);
+ length = (int) strlen(valueString);
width = Tk_TextWidth(scalePtr->tkfont, valueString, length);
/*