Fix warning: format specifies type 'unsigned long' but the argument has type 'unsigne...
authorAlexandre Ganea <alexandre.ganea@ubisoft.com>
Mon, 4 Nov 2019 19:36:36 +0000 (14:36 -0500)
committerAlexandre Ganea <alexandre.ganea@ubisoft.com>
Mon, 4 Nov 2019 19:42:07 +0000 (14:42 -0500)
compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp

index d6e6148..670e965 100644 (file)
@@ -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");
 }