diff --git a/libcxx/test/libcxx/containers/sequences/deque/spare_block_handling.pass.cpp b/libcxx/test/libcxx/containers/sequences/deque/spare_block_handling.pass.cpp --- a/libcxx/test/libcxx/containers/sequences/deque/spare_block_handling.pass.cpp +++ b/libcxx/test/libcxx/containers/sequences/deque/spare_block_handling.pass.cpp @@ -31,12 +31,12 @@ template static void print(const Deque& d) { - std::printf("%lu : __front_spare() == %lu" - " : __back_spare() == %lu" - " : __capacity() == %lu" - " : bytes allocated == %lu\n", - d.size(), d.__front_spare(), d.__back_spare(), d.__capacity(), - malloc_allocator_base::outstanding_bytes); + std::printf("%zu : __front_spare() == %zu" + " : __back_spare() == %zu" + " : __capacity() == %zu" + " : bytes allocated == %zu\n", + d.size(), d.__front_spare(), d.__back_spare(), d.__capacity(), + malloc_allocator_base::outstanding_bytes); } template diff --git a/libcxx/test/std/containers/associative/map/map.cons/copy_assign.pass.cpp b/libcxx/test/std/containers/associative/map/map.cons/copy_assign.pass.cpp --- a/libcxx/test/std/containers/associative/map/map.cons/copy_assign.pass.cpp +++ b/libcxx/test/std/containers/associative/map/map.cons/copy_assign.pass.cpp @@ -77,7 +77,8 @@ bool balanced_allocs() { std::vector temp1, temp2; - std::printf("Allocations = %lu, deallocations = %lu\n", ca_allocs.size(), ca_deallocs.size()); + std::printf("Allocations = %zu, deallocations = %zu\n", ca_allocs.size(), + ca_deallocs.size()); if (ca_allocs.size() != ca_deallocs.size()) return false; @@ -85,12 +86,12 @@ std::sort(temp1.begin(), temp1.end()); temp2.clear(); std::unique_copy(temp1.begin(), temp1.end(), std::back_inserter>(temp2)); - std::printf("There were %lu different allocators\n", temp2.size()); + std::printf("There were %zu different allocators\n", temp2.size()); for (std::vector::const_iterator it = temp2.begin(); it != temp2.end(); ++it ) { std::ptrdiff_t const allocs = std::count(ca_allocs.begin(), ca_allocs.end(), *it); std::ptrdiff_t const deallocs = std::count(ca_deallocs.begin(), ca_deallocs.end(), *it); - std::printf("%d: %ld vs %ld\n", *it, allocs, deallocs); + std::printf("%d: %td vs %td\n", *it, allocs, deallocs); if (allocs != deallocs) return false; } @@ -99,12 +100,12 @@ std::sort(temp1.begin(), temp1.end()); temp2.clear(); std::unique_copy(temp1.begin(), temp1.end(), std::back_inserter>(temp2)); - std::printf("There were %lu different (de)allocators\n", temp2.size()); + std::printf("There were %zu different (de)allocators\n", temp2.size()); for (std::vector::const_iterator it = ca_deallocs.begin(); it != ca_deallocs.end(); ++it ) { std::ptrdiff_t const allocs = std::count(ca_allocs.begin(), ca_allocs.end(), *it); std::ptrdiff_t const deallocs = std::count(ca_deallocs.begin(), ca_deallocs.end(), *it); - std::printf("%d: %ld vs %ld\n", *it, allocs, deallocs); + std::printf("%d: %td vs %td\n", *it, allocs, deallocs); if (allocs != deallocs) return false; }