Index: src/core/SkDebug.cpp |
diff --git a/src/core/SkDebug.cpp b/src/core/SkDebug.cpp |
index d484f5eaffe24f114f234df60c882f7b1f9bce71..b705a650ea2ce237ffef6a0f9d39b252052f9aab 100644 |
--- a/src/core/SkDebug.cpp |
+++ b/src/core/SkDebug.cpp |
@@ -51,4 +51,9 @@ unsigned SkToUInt(uintmax_t x) { |
return (unsigned)x; |
} |
+size_t SkToSizeT(uintmax_t x) { |
+ SkASSERT((size_t)x == x); |
+ return (size_t)x; |
+} |
+ |
#endif |