Index: include/core/SkScalar.h |
diff --git a/include/core/SkScalar.h b/include/core/SkScalar.h |
index e0490e2b0beebc9b4b41bb32ff9b4542bb55918b..94c3ce15c04e20d8e7808be4a3b48caef6a53d47 100644 |
--- a/include/core/SkScalar.h |
+++ b/include/core/SkScalar.h |
@@ -127,7 +127,7 @@ static inline bool SkScalarIsFinite(SkScalar x) { |
SkScalar prod = x * 0; |
// At this point, prod will either be NaN or 0 |
// Therefore we can return (prod == prod) or (0 == prod). |
- return prod == prod; |
+ return !SkScalarIsNaN(prod); |
} |
/** |