Fix Win7 compiler warnings/errors in r9934
git-svn-id: http://skia.googlecode.com/svn/trunk@9935 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/samplecode/SamplePathUtils.cpp b/samplecode/SamplePathUtils.cpp
index d7a7e54..d194363 100644
--- a/samplecode/SamplePathUtils.cpp
+++ b/samplecode/SamplePathUtils.cpp
@@ -64,7 +64,7 @@
/////////////////////////////////////////////////////////////
virtual void onDrawContent(SkCanvas* canvas) {
- SkScalar intervals[8] = {.5, .3, .5, .3, .5, .3, .5, .3};
+ SkScalar intervals[8] = { .5f, .3f, .5f, .3f, .5f, .3f, .5f, .3f };
SkDashPathEffect dash(intervals, 2, fPhase);
SkCornerPathEffect corner(.25f);
SkComposePathEffect compose(&dash, &corner);
@@ -93,7 +93,7 @@
}
// for animated pathEffect
- fPhase += .01;
+ fPhase += .01f;
this->inval(NULL);
}