aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Ben Wagner <benjaminwagner@google.com>2017-09-16 19:04:17 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-18 17:23:39 +0000
commita9712a511316ef888d008d5f993f3300e9aacd67 (patch)
treedb40e18a39094e97cd98141328f37fe8cee44cff /include
parenteafa64b4018a334daae74492fb33bc54bd0bb6aa (diff)
Suppress float-cast-overflow for double-to-float in SkMatrix{,44}
No API change. Bug: skia:4632 Change-Id: Ic9cb9de7cce8aca43f0ce8066abcc44a0b04ca84 Reviewed-on: https://skia-review.googlesource.com/47681 Commit-Queue: Ben Wagner <benjaminwagner@google.com> Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/core/SkMatrix44.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkMatrix44.h b/include/core/SkMatrix44.h
index c1b74582cb..398204cc20 100644
--- a/include/core/SkMatrix44.h
+++ b/include/core/SkMatrix44.h
@@ -56,7 +56,7 @@
return x;
}
static inline float SkDoubleToMScalar(double x) {
- return static_cast<float>(x);
+ return sk_double_to_float(x);
}
static inline double SkMScalarToDouble(float x) {
return static_cast<double>(x);