diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-15 17:47:36 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-10-15 17:47:36 +0000 |
commit | 8b169311b59ab84e8ca6f3630a1e960cc1be751e (patch) | |
tree | 5d9ec712d281a81183fed5b650b1f9a92ae7cad4 /bench/FontCacheBench.cpp | |
parent | baa15581f6cbd9ce4cc5ba5eb1d6fcbe27ae6741 (diff) |
Second wave of Win64 warning cleanup
https://codereview.chromium.org/27343002/
git-svn-id: http://skia.googlecode.com/svn/trunk@11778 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench/FontCacheBench.cpp')
-rw-r--r-- | bench/FontCacheBench.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/FontCacheBench.cpp b/bench/FontCacheBench.cpp index c682f43121..a52fd42ef2 100644 --- a/bench/FontCacheBench.cpp +++ b/bench/FontCacheBench.cpp @@ -20,7 +20,7 @@ static int count_glyphs(const uint16_t start[]) { while (*curr != gUniqueGlyphIDs_Sentinel) { curr += 1; } - return curr - start; + return static_cast<int>(curr - start); } class FontCacheBench : public SkBenchmark { @@ -39,7 +39,7 @@ protected: const uint16_t* array = gUniqueGlyphIDs; while (*array != gUniqueGlyphIDs_Sentinel) { - size_t count = count_glyphs(array); + int count = count_glyphs(array); for (int i = 0; i < this->getLoops(); ++i) { paint.measureText(array, count * sizeof(uint16_t)); } |