summaryrefslogtreecommitdiff
path: root/cmds/flatland/Main.cpp
diff options
context:
space:
mode:
author Mark Salyzyn <salyzyn@google.com> 2014-03-13 23:12:09 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2014-03-13 23:12:09 +0000
commit993146092f8205d9747f082ccd63c09b536caa4e (patch)
tree89d07eb2647268606632e10e6c9add64b30f7b84 /cmds/flatland/Main.cpp
parent49bfda1fbdf828a8ea63ae2c2fa25739f6e48527 (diff)
parentd4dabf872ac0a12e12aebae9032f7d62762c2aeb (diff)
am d4dabf87: am cdbf28b3: Merge "native frameworks: 64-bit compile issues"
* commit 'd4dabf872ac0a12e12aebae9032f7d62762c2aeb': native frameworks: 64-bit compile issues
Diffstat (limited to 'cmds/flatland/Main.cpp')
-rw-r--r--cmds/flatland/Main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmds/flatland/Main.cpp b/cmds/flatland/Main.cpp
index e80dbb1505..866203f3f2 100644
--- a/cmds/flatland/Main.cpp
+++ b/cmds/flatland/Main.cpp
@@ -600,7 +600,7 @@ static bool runTest(const BenchmarkDesc b, size_t run) {
uint32_t runHeight = b.runHeights[run];
uint32_t runWidth = b.width * runHeight / b.height;
- printf(" %-*s | %4d x %4d | ", g_BenchmarkNameLen, b.name,
+ printf(" %-*s | %4d x %4d | ", static_cast<int>(g_BenchmarkNameLen), b.name,
runWidth, runHeight);
fflush(stdout);
@@ -690,8 +690,9 @@ static void printResultsTableHeader() {
size_t len = strlen(scenario);
size_t leftPad = (g_BenchmarkNameLen - len) / 2;
size_t rightPad = g_BenchmarkNameLen - len - leftPad;
- printf(" %*s%s%*s | Resolution | Time (ms)\n", leftPad, "",
- "Scenario", rightPad, "");
+ printf(" %*s%s%*s | Resolution | Time (ms)\n",
+ static_cast<int>(leftPad), "",
+ "Scenario", static_cast<int>(rightPad), "");
}
// Run ALL the benchmarks!