diff options
Diffstat (limited to 'src/core/SkPoint.cpp')
-rw-r--r-- | src/core/SkPoint.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkPoint.cpp b/src/core/SkPoint.cpp index c51b7cabe1..488bacb3dd 100644 --- a/src/core/SkPoint.cpp +++ b/src/core/SkPoint.cpp @@ -110,7 +110,7 @@ SkScalar SkPoint::Normalize(SkPoint* pt) { float mag2; if (!isLengthNearlyZero(pt->fX, pt->fY, &mag2)) { float mag = sk_float_sqrt(mag2); - float scale = 1.0 / mag; + float scale = 1.0f / mag; pt->fX = pt->fX * scale; pt->fY = pt->fY * scale; return mag; |