aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SampleLineClipper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SampleLineClipper.cpp')
-rw-r--r--samplecode/SampleLineClipper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/samplecode/SampleLineClipper.cpp b/samplecode/SampleLineClipper.cpp
index 85654706c8..94374b53d3 100644
--- a/samplecode/SampleLineClipper.cpp
+++ b/samplecode/SampleLineClipper.cpp
@@ -29,7 +29,8 @@
static int test0(SkPoint pts[], SkRect* clip) {
pts[0].set(200000, 140);
pts[1].set(-740000, 483);
- pts[2].set(1.00000102e-06f, 9.10000017e-05f);
+ pts[2].set(SkFloatToScalar(1.00000102e-06f),
+ SkFloatToScalar(9.10000017e-05f));
clip->set(0, 0, 640, 480);
return 2;
}