From: caryclark@google.com Date: Thu, 18 Apr 2013 17:44:57 +0000 (+0000) Subject: Fix compile warning X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~12696 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9584b9ebd84993afc89b503217cc1012c70ed559;p=platform%2Fupstream%2FlibSkiaSharp.git Fix compile warning Review URL: https://codereview.chromium.org/14227005 git-svn-id: http://skia.googlecode.com/svn/trunk@8748 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/src/effects/SkRectShaderImageFilter.cpp b/src/effects/SkRectShaderImageFilter.cpp index aee0e63..ada861f 100644 --- a/src/effects/SkRectShaderImageFilter.cpp +++ b/src/effects/SkRectShaderImageFilter.cpp @@ -49,7 +49,7 @@ bool SkRectShaderImageFilter::onFilterImage(Proxy* proxy, SkIPoint*) { SkRect rect(fRect); if (rect.isEmpty()) { - rect = SkRect::MakeWH(source.width(), source.height()); + rect = SkRect::MakeWH(SkIntToScalar(source.width()), SkIntToScalar(source.height())); } if (rect.isEmpty()) {