summaryrefslogtreecommitdiff
path: root/snappy-test.cc
diff options
context:
space:
mode:
authorsnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2011-03-24 19:15:54 +0000
committersnappy.mirrorbot@gmail.com <snappy.mirrorbot@gmail.com@03e5f5b5-db94-4691-08a0-1a8bf15f6143>2011-03-24 19:15:54 +0000
commit3549a59ad0fb4c6f591d8e6d5d33a60ee96332d2 (patch)
tree8a7a39e9d86d92ff8949322ec3e0ca9da154ab69 /snappy-test.cc
parenta57c28a46465a8a0995a05e75099cdcc5f8de306 (diff)
downloadsnappy-3549a59ad0fb4c6f591d8e6d5d33a60ee96332d2.tar.gz
Fix a microbenchmark crash on mingw32; seemingly %lld is not universally
supported on Windows, and %I64d is recommended instead. R=csilvers DELTA=6 (5 added, 0 deleted, 1 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=1034 git-svn-id: http://snappy.googlecode.com/svn/trunk@18 03e5f5b5-db94-4691-08a0-1a8bf15f6143
Diffstat (limited to 'snappy-test.cc')
-rw-r--r--snappy-test.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/snappy-test.cc b/snappy-test.cc
index ecb9bf4..bd06646 100644
--- a/snappy-test.cc
+++ b/snappy-test.cc
@@ -159,7 +159,12 @@ void Benchmark::Run() {
"%.1fGB/s", bytes_per_second / (1024.0f * 1024.0f * 1024.0f));
}
- fprintf(stderr, "%-18s %10lld %10lld %10d %s %s\n",
+ fprintf(stderr,
+#ifdef WIN32
+ "%-18s %10I64d %10I64d %10d %s %s\n",
+#else
+ "%-18s %10lld %10lld %10d %s %s\n",
+#endif
heading.c_str(),
static_cast<long long>(real_time_us * 1000 / num_iterations),
static_cast<long long>(cpu_time_us * 1000 / num_iterations),