diff --git a/libcxx/test/std/utilities/charconv/charconv.msvc/test.cpp b/libcxx/test/std/utilities/charconv/charconv.msvc/test.cpp --- a/libcxx/test/std/utilities/charconv/charconv.msvc/test.cpp +++ b/libcxx/test/std/utilities/charconv/charconv.msvc/test.cpp @@ -91,7 +91,7 @@ puts("SEED DATA:"); for (const auto& elem : vec) { - printf("%u ", elem); + printf("%zu ", static_cast(elem)); } printf("\n"); @@ -566,7 +566,7 @@ void assert_message_bits(const bool b, const char* const msg, const uint32_t bits) { if (!b) { - fprintf(stderr, "%s failed for 0x%08X\n", msg, bits); + fprintf(stderr, "%s failed for 0x%08zX\n", msg, static_cast(bits)); fprintf(stderr, "This is a randomized test.\n"); fprintf(stderr, "DO NOT IGNORE/RERUN THIS FAILURE.\n"); fprintf(stderr, "You must report it to the STL maintainers.\n"); @@ -1093,7 +1093,7 @@ const long long ms = chrono::duration_cast(finish - start).count(); puts("PASS"); - printf("Randomized test cases: %u\n", PrefixesToTest * Fractions); + printf("Randomized test cases: %zu\n", static_cast(PrefixesToTest * Fractions)); printf("Total time: %lld ms\n", ms); if (ms < 3'000) {