diff options
author | hobbs <hobbs> | 2001-09-21 21:34:10 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2001-09-21 21:34:10 (GMT) |
commit | e8f132cd37c3015beeec2ec97ee84dea417d46f6 (patch) | |
tree | 583cc81aad13aec41709aa168d6716a5ab8c4b0a /unix/tkUnixScale.c | |
parent | d9a421150450e1078ad5a86d4ed223a4fa98ba4c (diff) | |
download | tk-e8f132cd37c3015beeec2ec97ee84dea417d46f6.zip tk-e8f132cd37c3015beeec2ec97ee84dea417d46f6.tar.gz tk-e8f132cd37c3015beeec2ec97ee84dea417d46f6.tar.bz2 |
minor cast fixes to prevent 64bit warnings
Diffstat (limited to 'unix/tkUnixScale.c')
-rw-r--r-- | unix/tkUnixScale.c | 6 |
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); /* |