From d9763a550517b003a39437221f2ea03c6b32f026 Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Wed, 24 Jul 2013 17:10:05 +0000 Subject: [PATCH] fix warning of implicit cast to float git-svn-id: http://skia.googlecode.com/svn/trunk@10316 2bbb7eff-a529-9590-31e7-b0007b416f81 --- samplecode/SampleMipMap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samplecode/SampleMipMap.cpp b/samplecode/SampleMipMap.cpp index 700235d..73fc5e5 100644 --- a/samplecode/SampleMipMap.cpp +++ b/samplecode/SampleMipMap.cpp @@ -80,8 +80,8 @@ protected: SkPaint paint; for (size_t i = 0; i < SK_ARRAY_COUNT(gLevel); ++i) { - SkScalar x = 10 + i * 100; - SkScalar y = 10; + SkScalar x = 10.0f + i * 100; + SkScalar y = 10.0f; paint.setFilterLevel(gLevel[i]); -- 2.7.4