aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/sk_tool_utils.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-10-19 08:29:16 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-19 08:29:16 -0700
commit2f8ac3538d59f272495ce8c967dc16c1805e99c3 (patch)
tree4c7ba914529c5b63f89e50128aa89a7d20d35017 /tools/sk_tool_utils.cpp
parent59dc0d22f557a20669126fa425baefe6dd4b727a (diff)
Misc: Don't run etc1 bench with invalid image and fix VS2015 build warning
Diffstat (limited to 'tools/sk_tool_utils.cpp')
-rw-r--r--tools/sk_tool_utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sk_tool_utils.cpp b/tools/sk_tool_utils.cpp
index 9a667b4a45..e2bc0fc42c 100644
--- a/tools/sk_tool_utils.cpp
+++ b/tools/sk_tool_utils.cpp
@@ -352,7 +352,7 @@ void make_big_path(SkPath& path) {
static float gaussian2d_value(int x, int y, float sigma) {
// don't bother with the scale term since we're just going to normalize the
// kernel anyways
- float temp = exp(-(x*x + y*y)/(2*sigma*sigma));
+ float temp = expf(-(x*x + y*y)/(2*sigma*sigma));
return temp;
}