[compiler-rt] r308117 - [compiler-rt] Fix fix format specifies type in test
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 15 17:17:11 PDT 2017
Author: vitalybuka
Date: Sat Jul 15 17:17:11 2017
New Revision: 308117
URL: http://llvm.org/viewvc/llvm-project?rev=308117&view=rev
Log:
[compiler-rt] Fix fix format specifies type in test
Modified:
compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_bitvector_test.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_bitvector_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_bitvector_test.cc?rev=308117&r1=308116&r2=308117&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_bitvector_test.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/tests/sanitizer_bitvector_test.cc Sat Jul 15 17:17:11 2017
@@ -62,14 +62,14 @@ void Print(const BV &bv) {
t.copyFrom(bv);
while (!t.empty()) {
uptr idx = t.getAndClearFirstOne();
- fprintf(stderr, "%zd ", idx);
+ fprintf(stderr, "%lu ", idx);
}
fprintf(stderr, "\n");
}
void Print(const set<uptr> &s) {
for (set<uptr>::iterator it = s.begin(); it != s.end(); ++it) {
- fprintf(stderr, "%zd ", *it);
+ fprintf(stderr, "%lu ", *it);
}
fprintf(stderr, "\n");
}
More information about the llvm-commits
mailing list