Index: src/utils/SkNinePatch.cpp |
diff --git a/src/utils/SkNinePatch.cpp b/src/utils/SkNinePatch.cpp |
index ce8d4801c60d398ba77eb83c58f8954237fbc99e..4e0d1d1a39b3a3a923e55723ccfcbce97ffdb493 100644 |
--- a/src/utils/SkNinePatch.cpp |
+++ b/src/utils/SkNinePatch.cpp |
@@ -161,7 +161,7 @@ |
if (bounds.width() >= fixed) |
stretchX = (bounds.width() - fixed) / stretchSize; |
else // reuse stretchX, but keep it negative as a signal |
- stretchX = -bounds.width() / fixed; |
+ stretchX = SkScalarDiv(-bounds.width(), fixed); |
} |
if (numYStretch > 0) { |
@@ -173,7 +173,7 @@ |
if (bounds.height() >= fixed) |
stretchY = (bounds.height() - fixed) / stretchSize; |
else // reuse stretchX, but keep it negative as a signal |
- stretchY = -bounds.height() / fixed; |
+ stretchY = SkScalarDiv(-bounds.height(), fixed); |
} |
#if 0 |