Index: include/core/SkTypes.h |
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h |
index 2e495117d83b5dc80c156dea636882626e1cf22f..fb1cceccc3b0cd0d0f0db80b1d863a8823cc88b0 100644 |
--- a/include/core/SkTypes.h |
+++ b/include/core/SkTypes.h |
@@ -305,7 +305,7 @@ static inline bool SkIsU16(long x) { |
/** Returns the number of entries in an array (not a pointer) */ |
template <typename T, size_t N> char (&SkArrayCountHelper(T (&array)[N]))[N]; |
-#define SK_ARRAY_COUNT(array) (sizeof(SkArrayCountHelper(array))) |
+#define SK_ARRAY_COUNT(array) ((int) sizeof(SkArrayCountHelper(array))) |
#define SkAlign2(x) (((x) + 1) >> 1 << 1) |
#define SkIsAlign2(x) (0 == ((x) & 1)) |