Index: src/core/SkScalar.cpp |
diff --git a/src/core/SkScalar.cpp b/src/core/SkScalar.cpp |
index c48d3890ad8adfe63014c04c018dea06f9fc4429..e8f6e9334839cd284add40616e81ea2d2d34e886 100644 |
--- a/src/core/SkScalar.cpp |
+++ b/src/core/SkScalar.cpp |
@@ -31,6 +31,6 @@ |
// Otherwise, interpolate between right - 1 and right. |
SkScalar rightKey = keys[right]; |
SkScalar leftKey = keys[right-1]; |
- SkScalar fract = SkScalarDiv(searchKey-leftKey,rightKey-leftKey); |
+ SkScalar fract = (searchKey - leftKey) / (rightKey - leftKey); |
return SkScalarInterp(values[right-1], values[right], fract); |
} |