aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/PathOpsDVectorTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/PathOpsDVectorTest.cpp')
-rw-r--r--tests/PathOpsDVectorTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/PathOpsDVectorTest.cpp b/tests/PathOpsDVectorTest.cpp
index 583a868149..5eced8f5e7 100644
--- a/tests/PathOpsDVectorTest.cpp
+++ b/tests/PathOpsDVectorTest.cpp
@@ -28,7 +28,7 @@ DEF_TEST(PathOpsDVector, reporter) {
SkASSERT(ValidVector(v2));
v1 += v2;
REPORTER_ASSERT(reporter, v1.fX == 0 && v1.fY == 0);
- v2 -= v2;
+ v2 -= static_cast<decltype(v2)&>(v2);
REPORTER_ASSERT(reporter, v2.fX == 0 && v2.fY == 0);
v1 = tests[index + 1] - tests[index];
v1 /= 2;