summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPNG.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2009-01-06 01:29:39 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2009-01-06 01:29:39 (GMT)
commit8d93348cffe3865ce4da133b780e231e7686bca5 (patch)
treec9a645e3c76f4451155bc559a3107e79a391dedd /generic/tkImgPNG.c
parentbc2875abe04af3a0845c5a2cca5f4e61eb677d29 (diff)
downloadtk-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.c4
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;
}