diff options
| author | 2014-03-12 13:12:44 -0700 | |
|---|---|---|
| committer | 2014-03-12 13:12:44 -0700 | |
| commit | 92dc3fc52cf097bd105460cf377779bdcf146d62 (patch) | |
| tree | aa1c6a8230541a45e941eb4c459b19b8487e08d3 /cmds/flatland/Main.cpp | |
| parent | 06ed9491418ce84e4272bf4201545fa6cfe3932e (diff) | |
native frameworks: 64-bit compile issues
- Fix format (print/scanf)
- Suppress unused argument warning messages (bonus)
Change-Id: I05c7724d2aba6da1e82a86000e11f3a8fef4e728
Diffstat (limited to 'cmds/flatland/Main.cpp')
| -rw-r--r-- | cmds/flatland/Main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmds/flatland/Main.cpp b/cmds/flatland/Main.cpp index d6ac3d2593..c0e5b3dabc 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! |