diff options
author | patthoyts@users.sourceforge.net <patthoyts> | 2009-01-06 01:29:39 (GMT) |
---|---|---|
committer | patthoyts@users.sourceforge.net <patthoyts> | 2009-01-06 01:29:39 (GMT) |
commit | a2ac4ea5a180bc9ca2da16d27ca5c878c1399738 (patch) | |
tree | c9a645e3c76f4451155bc559a3107e79a391dedd | |
parent | 5f274894493315a0dba7e766ca5562b8d6306100 (diff) | |
download | tk-a2ac4ea5a180bc9ca2da16d27ca5c878c1399738.zip tk-a2ac4ea5a180bc9ca2da16d27ca5c878c1399738.tar.gz tk-a2ac4ea5a180bc9ca2da16d27ca5c878c1399738.tar.bz2 |
cast away a warning.
-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; } |