| Index: src/core/SkScalar.cpp
|
| diff --git a/src/core/SkScalar.cpp b/src/core/SkScalar.cpp
|
| index e8f6e9334839cd284add40616e81ea2d2d34e886..c48d3890ad8adfe63014c04c018dea06f9fc4429 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 = (searchKey - leftKey) / (rightKey - leftKey);
|
| + SkScalar fract = SkScalarDiv(searchKey-leftKey,rightKey-leftKey);
|
| return SkScalarInterp(values[right-1], values[right], fract);
|
| }
|
|
|