summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-08-26 18:23:53 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-08-29 15:05:49 -0400
commit1e3e569b04f45592ce2174e48df0fcb333ce0ad3 (patch)
treee14924b1510f9d2887e071bbd5483fd36db732e2
parent8577daba04e60c1b4c44ce01c6874a573952913a (diff)
test/utils.c: Use pow(), not powf() in sRGB conversion routines
These functions are operating on double precision values, so use pow() instead of powf().
-rw-r--r--test/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/utils.c b/test/utils.c
index df16ef5f..c922ae5d 100644
--- a/test/utils.c
+++ b/test/utils.c
@@ -772,7 +772,7 @@ convert_srgb_to_linear (double c)
if (c <= 0.04045)
return c / 12.92;
else
- return powf ((c + 0.055) / 1.055, 2.4);
+ return pow ((c + 0.055) / 1.055, 2.4);
}
double
@@ -781,7 +781,7 @@ convert_linear_to_srgb (double c)
if (c <= 0.0031308)
return c * 12.92;
else
- return 1.055 * powf (c, 1.0/2.4) - 0.055;
+ return 1.055 * pow (c, 1.0/2.4) - 0.055;
}
void