aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gm/cubicpaths.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/cubicpaths.cpp b/gm/cubicpaths.cpp
index 56ed7297f5..e0d72b44b4 100644
--- a/gm/cubicpaths.cpp
+++ b/gm/cubicpaths.cpp
@@ -30,9 +30,9 @@ protected:
SkPaint paint;
SkRect bounds = path.getBounds();
- for (int dy = -1; dy <= 1; ++dy) {
+ for (SkScalar dy = -1; dy <= 1; dy += 1) {
canvas->save();
- for (int dx = -1; dx <= 1; ++dx) {
+ for (SkScalar dx = -1; dx <= 1; dx += 1) {
canvas->save();
canvas->clipRect(bounds);
canvas->translate(dx, dy);