aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-21 14:24:16 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-21 14:24:16 +0000
commita4662865e37a2ca95b5e3379072f6a274acc8ac8 (patch)
treedd09a0539c780850e5897df268dfca073e9f2d32 /bench
parentbcd431e1778001990c4d877929b14959dc96a0d3 (diff)
More Windows 64b compilation warning fixes
Diffstat (limited to 'bench')
-rw-r--r--bench/benchmain.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index de38cc9eb5..697f4fb6cc 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -443,13 +443,13 @@ int tool_main(int argc, char** argv) {
// Find the longest name of the benches we're going to run to make the output pretty.
Iter names;
SkBenchmark* bench;
- int longestName = 0;
+ size_t longestName = 0;
while ((bench = names.next()) != NULL) {
SkAutoTUnref<SkBenchmark> benchUnref(bench);
if (SkCommandLineFlags::ShouldSkip(FLAGS_match, bench->getName())) {
continue;
}
- const int length = strlen(bench->getName());
+ const size_t length = strlen(bench->getName());
longestName = length > longestName ? length : longestName;
}
@@ -539,7 +539,7 @@ int tool_main(int argc, char** argv) {
loggedBenchName = true;
SkString str;
str.printf("running bench [%3d %3d] %*s ",
- dim.fX, dim.fY, longestName, bench->getName());
+ dim.fX, dim.fY, (int)longestName, bench->getName());
logger.logProgress(str);
}