Chromium Code Reviews| Index: src/core/SkDebug.cpp |
| diff --git a/src/core/SkDebug.cpp b/src/core/SkDebug.cpp |
| index b705a650ea2ce237ffef6a0f9d39b252052f9aab..2257c7f6d8c9e72f61d86e87eeca94b4fa4a5762 100644 |
| --- a/src/core/SkDebug.cpp |
| +++ b/src/core/SkDebug.cpp |
| @@ -56,4 +56,9 @@ size_t SkToSizeT(uintmax_t x) { |
| return (size_t)x; |
| } |
| +off_t SkToOffT(intmax_t x) { |
| + SkASSERT((off_t)x == x); |
| + return (off_t)x; |
| +} |
| + |
| #endif |