From 9cc3ebf8b7630e30bc0eea6dc4a55348edf71091 Mon Sep 17 00:00:00 2001 From: Alexandre Ganea Date: Mon, 4 Nov 2019 14:36:36 -0500 Subject: [PATCH] Fix warning: format specifies type 'unsigned long' but the argument has type 'unsigned long long' [-Wformat] --- compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 d6e6148..670e965 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 &s) { for (set::iterator it = s.begin(); it != s.end(); ++it) { +#if defined(_WIN64) + fprintf(stderr, "%llu ", *it); +#else fprintf(stderr, "%lu ", *it); +#endif } fprintf(stderr, "\n"); } -- 2.7.4