Cast int to float.
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 10 Apr 2014 21:09:33 +0000 (21:09 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 10 Apr 2014 21:09:33 +0000 (21:09 +0000)
Get rid of warning->error.

TBR=reed@google.com
NOTRY=true
NOTREECHECKS=true

Author: scroggo@google.com

Review URL: https://codereview.chromium.org/233883002

git-svn-id: http://skia.googlecode.com/svn/trunk@14140 2bbb7eff-a529-9590-31e7-b0007b416f81

tests/LayerRasterizerTest.cpp

index b393525..8e6b64c 100644 (file)
@@ -85,7 +85,7 @@ DEF_TEST(LayerRasterizer_copy, reporter) {
     // Create a bunch of paints with different flags.
     for (uint32_t flags = 0x01; flags < SkPaint::kAllFlags; flags <<= 1) {
         paint.setFlags(flags);
-        builder.addLayer(paint, flags, flags);
+        builder.addLayer(paint, static_cast<SkScalar>(flags), static_cast<SkScalar>(flags));
     }
 
     // Create a layer rasterizer with all the existing layers.