diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-24 21:46:29 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-01-24 21:46:29 +0000 |
commit | a8c7f7702fb4bbedb615031bc653c5cd161a038e (patch) | |
tree | c51f2a6f6f647a4b84fe0fc5c1f077b45fec8087 /src/core/SkDebug.cpp | |
parent | 8f6884aab8aecd7657cf3f9cdbc682f0deca29c5 (diff) |
fix (some) 64bit warnings -- size_t -> int
BUG=skia:
R=mtklein@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/147053003
git-svn-id: http://skia.googlecode.com/svn/trunk@13178 2bbb7eff-a529-9590-31e7-b0007b416f81
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 2a04b302ff..772352248d 100644 --- a/src/core/SkDebug.cpp +++ b/src/core/SkDebug.cpp @@ -41,4 +41,9 @@ uint32_t SkToU32(uintmax_t x) { return (uint32_t)x; } +int SkToInt(intmax_t x) { + SkASSERT((int)x == x); + return (int)x; +} + #endif |