Chromium Code Reviews| Index: src/core/SkDebug.cpp |
| diff --git a/src/core/SkDebug.cpp b/src/core/SkDebug.cpp |
| index 772352248d66cce973f0a4569d5bb13f8f22fe16..d484f5eaffe24f114f234df60c882f7b1f9bce71 100644 |
| --- a/src/core/SkDebug.cpp |
| +++ b/src/core/SkDebug.cpp |
| @@ -46,4 +46,9 @@ int SkToInt(intmax_t x) { |
| return (int)x; |
| } |
| +unsigned SkToUInt(uintmax_t x) { |
| + SkASSERT((unsigned)x == x); |
| + return (unsigned)x; |
| +} |
| + |
| #endif |