summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatthoyts@users.sourceforge.net <patthoyts>2009-01-06 01:29:39 (GMT)
committerpatthoyts@users.sourceforge.net <patthoyts>2009-01-06 01:29:39 (GMT)
commita2ac4ea5a180bc9ca2da16d27ca5c878c1399738 (patch)
treec9a645e3c76f4451155bc559a3107e79a391dedd
parent5f274894493315a0dba7e766ca5562b8d6306100 (diff)
downloadtk-a2ac4ea5a180bc9ca2da16d27ca5c878c1399738.zip
tk-a2ac4ea5a180bc9ca2da16d27ca5c878c1399738.tar.gz
tk-a2ac4ea5a180bc9ca2da16d27ca5c878c1399738.tar.bz2
cast away a warning.
-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;
}