summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPNG.c
diff options
context:
space:
mode:
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;
}