summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-11-04 14:36:36 -0500
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>2019-11-04 14:42:07 -0500
commit9cc3ebf8b7630e30bc0eea6dc4a55348edf71091 (patch)
tree8c6cfa68ed9954889dffca2b1858bb4b1e65b1af
parent8112a423a8ede9bce64b6553e6451bf10995105c (diff)
downloadbcm5719-llvm-9cc3ebf8b7630e30bc0eea6dc4a55348edf71091.tar.gz
bcm5719-llvm-9cc3ebf8b7630e30bc0eea6dc4a55348edf71091.zip
Fix warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat]
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp b/compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp
index d6e61485738..670e96552c6 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp
@@ -68,7 +68,11 @@ void Print(const BV &bv) {
void Print(const set<uptr> &s) {
for (set<uptr>::iterator it = s.begin(); it != s.end(); ++it) {
+#if defined(_WIN64)
+ fprintf(stderr, "%llu ", *it);
+#else
fprintf(stderr, "%lu ", *it);
+#endif
}
fprintf(stderr, "\n");
}
OpenPOWER on IntegriCloud