Index: include/core/SkTypes.h |
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h |
index 0e9e2303493f40fa03e386d5a189cd50be4e6e51..a38be84d8fbc38325ae217fc265a2ccc5dfb0b23 100644 |
--- a/include/core/SkTypes.h |
+++ b/include/core/SkTypes.h |
@@ -352,6 +352,7 @@ template <typename T> inline void SkTSwap(T& a, T& b) { |
} |
static inline int32_t SkAbs32(int32_t value) { |
+ SkASSERT(value != SK_NaN32); // The most negative int32_t can't be negated. |
if (value < 0) { |
value = -value; |
} |