aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/FontCacheBench.cpp
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-15 17:47:36 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-15 17:47:36 +0000
commit8b169311b59ab84e8ca6f3630a1e960cc1be751e (patch)
tree5d9ec712d281a81183fed5b650b1f9a92ae7cad4 /bench/FontCacheBench.cpp
parentbaa15581f6cbd9ce4cc5ba5eb1d6fcbe27ae6741 (diff)
Second wave of Win64 warning cleanup
Diffstat (limited to 'bench/FontCacheBench.cpp')
-rw-r--r--bench/FontCacheBench.cpp4
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));
}