diff options
Diffstat (limited to 'src/core/SkDebug.cpp')
-rw-r--r-- | src/core/SkDebug.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/SkDebug.cpp b/src/core/SkDebug.cpp index 772352248d..d484f5eaff 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 |