diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-24 17:10:05 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-07-24 17:10:05 +0000 |
commit | d9763a550517b003a39437221f2ea03c6b32f026 (patch) | |
tree | 2711cbdbfaf840ae30aace30ad73b8faec67b329 /samplecode | |
parent | 8d725b25a6287e49e2b0cb2965871186e716eded (diff) |
fix warning of implicit cast to float
git-svn-id: http://skia.googlecode.com/svn/trunk@10316 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleMipMap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SampleMipMap.cpp b/samplecode/SampleMipMap.cpp index 700235d025..73fc5e52a0 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]); |