summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_copy.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_copy.pass.cpp')
-rw-r--r--libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_copy.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_copy.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_copy.pass.cpp
index 8dedddb4c20..37d5759f833 100644
--- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_copy.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/remove_copy.pass.cpp
@@ -26,7 +26,7 @@ TEST_CONSTEXPR bool test_constexpr() {
auto it = std::remove_copy(std::begin(ia), std::end(ia), std::begin(ib), 5);
- return std::distance(std::begin(ib), it) == (std::size(ia) - 2) // we removed two elements
+ return std::distance(std::begin(ib), it) == static_cast<int>(std::size(ia) - 2) // we removed two elements
&& std::none_of(std::begin(ib), it, [](int a) {return a == 5;})
&& std::all_of (it, std::end(ib), [](int a) {return a == 0;})
;
OpenPOWER on IntegriCloud