Index: include/core/SkRRect.h |
diff --git a/include/core/SkRRect.h b/include/core/SkRRect.h |
index d6187f415aff223404982f32338873e547418520..fafe01924dafb0bba0e08fbed7490b8e86350ba6 100644 |
--- a/include/core/SkRRect.h |
+++ b/include/core/SkRRect.h |
@@ -188,12 +188,14 @@ public: |
friend bool operator==(const SkRRect& a, const SkRRect& b) { |
return a.fRect == b.fRect && |
- SkScalarsEqual((SkScalar*) a.fRadii, (SkScalar*) b.fRadii, 8); |
+ SkScalarsEqual(a.fRadii[0].asScalars(), |
+ b.fRadii[0].asScalars(), 8); |
} |
friend bool operator!=(const SkRRect& a, const SkRRect& b) { |
return a.fRect != b.fRect || |
- !SkScalarsEqual((SkScalar*) a.fRadii, (SkScalar*) b.fRadii, 8); |
+ !SkScalarsEqual(a.fRadii[0].asScalars(), |
+ b.fRadii[0].asScalars(), 8); |
} |
/** |