From: reed@google.com Date: Thu, 23 May 2013 19:47:05 +0000 (+0000) Subject: use SkScalar instead of int for loops, to avoid warning in canvas->translate() calls X-Git-Tag: submit/tizen/20180928.044319~12310 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f8990cd2cf8bc934efef15c74e4d9439ddac184;p=platform%2Fupstream%2FlibSkiaSharp.git use SkScalar instead of int for loops, to avoid warning in canvas->translate() calls BUG= Review URL: https://codereview.chromium.org/15875012 git-svn-id: http://skia.googlecode.com/svn/trunk@9263 2bbb7eff-a529-9590-31e7-b0007b416f81 --- 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);