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 d6e61485738fe1..670e96552c68f6 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"); }