Warning/error fix for r11099 on Mac 10.6

git-svn-id: http://skia.googlecode.com/svn/trunk@11107 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-09-05 17:53:34 +00:00
parent 8e03aa45d1
commit b85564afff

View File

@ -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.