aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-05 17:53:34 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-09-05 17:53:34 +0000
commitb85564afffe630190fca81111a5f28cf9d4143be (patch)
treefc08af8d89bbeeeeb07d0d4d2f666cde8a4d0d5f /tests
parent8e03aa45d15b2bf6eb766db11019afb947bb998c (diff)
Warning/error fix for r11099 on Mac 10.6
git-svn-id: http://skia.googlecode.com/svn/trunk@11107 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests')
-rw-r--r--tests/BlurTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/BlurTest.cpp b/tests/BlurTest.cpp
index 5cd1ccaf22..a0e3611694 100644
--- a/tests/BlurTest.cpp
+++ b/tests/BlurTest.cpp
@@ -195,9 +195,9 @@ static int step(int x, SkScalar min, SkScalar max) {
// Implement a Gaussian function with 0 mean and std.dev. of 'sigma'.
static float gaussian(int x, SkScalar sigma) {
- float k = SK_Scalar1/(sigma * sqrt(2.0f*SK_ScalarPI));
+ float k = SK_Scalar1/(sigma * sqrtf(2.0f*SK_ScalarPI));
float exponent = -(x * x) / (2 * sigma * sigma);
- return k * exp(exponent);
+ return k * expf(exponent);
}
// Perform a brute force convolution of a step function with a Gaussian.