summaryrefslogtreecommitdiff
path: root/fitz/res_pixmap.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-06-19 17:04:04 +0200
committerTor Andersson <tor@ghostscript.com>2010-06-19 17:04:04 +0200
commit8e59d2f0e102476c0dbd897661860666c12e8aa6 (patch)
treeb4ce4ab1eccb87c1771b9a65c8ca6e8c77aea8c7 /fitz/res_pixmap.c
parentb058141ef35119f3e0b51c73716abbe235b034e2 (diff)
downloadmupdf-8e59d2f0e102476c0dbd897661860666c12e8aa6.tar.xz
Floats everywhere!
Diffstat (limited to 'fitz/res_pixmap.c')
-rw-r--r--fitz/res_pixmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/res_pixmap.c b/fitz/res_pixmap.c
index 79900ed1..fd32fbaf 100644
--- a/fitz/res_pixmap.c
+++ b/fitz/res_pixmap.c
@@ -64,7 +64,7 @@ fz_gammapixmap(fz_pixmap *pix, float gamma)
unsigned char *p = pix->samples;
int i;
for (i = 0; i < 256; i++)
- table[i] = CLAMP(pow(i / 255.0, gamma) * 255.0, 0, 255);
+ table[i] = CLAMP(powf(i / 255.0f, gamma) * 255, 0, 255);
while (n--)
{
*p = table[*p];