Skip to content

Commit 143f71e

Browse files
committed
[sanitizer_common] Fix type in format specifier by casting
40dcf24 had changed the format specifier to fix the build for their local system. Unfortunately, that disagrees with some other systems, such as this buildbot: https://lab.llvm.org/buildbot/#/builders/37/builds/30440 This patch fixes the issue for all systems by casting.
1 parent 59a6525 commit 143f71e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/tests/sanitizer_bitvector_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void Print(const set<uptr> &s) {
7171
#if defined(_WIN64)
7272
fprintf(stderr, "%llu ", *it);
7373
#else
74-
fprintf(stderr, "%lu ", *it);
74+
fprintf(stderr, "%lu ", (unsigned long)*it);
7575
#endif
7676
}
7777
fprintf(stderr, "\n");

0 commit comments

Comments
 (0)