diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2009-01-06 01:29:39 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2009-01-06 01:29:39 (GMT) |
commit | 8d93348cffe3865ce4da133b780e231e7686bca5 (patch) | |
tree | c9a645e3c76f4451155bc559a3107e79a391dedd /generic/tkImgPNG.c | |
parent | bc2875abe04af3a0845c5a2cca5f4e61eb677d29 (diff) | |
download | tk-8d93348cffe3865ce4da133b780e231e7686bca5.zip tk-8d93348cffe3865ce4da133b780e231e7686bca5.tar.gz tk-8d93348cffe3865ce4da133b780e231e7686bca5.tar.bz2 |
cast away a warning.
Diffstat (limited to 'generic/tkImgPNG.c')
-rw-r--r-- | generic/tkImgPNG.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkImgPNG.c b/generic/tkImgPNG.c index 73ffa46..bbdcdcc 100644 --- a/generic/tkImgPNG.c +++ b/generic/tkImgPNG.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkImgPNG.c,v 1.2 2008/12/28 22:13:31 dkf Exp $ + * RCS: @(#) $Id: tkImgPNG.c,v 1.3 2009/01/06 01:29:39 patthoyts Exp $ */ #include "tkInt.h" @@ -1169,7 +1169,7 @@ CheckColor( */ if (pngPtr->bitDepth < 8) { - pngPtr->bitScale = 255 / (pow(2, pngPtr->bitDepth) - 1); + pngPtr->bitScale = 255 / (int)(pow(2, pngPtr->bitDepth) - 1); } else { pngPtr->bitScale = 1; } |