diff options
| author | Billy Robert O'Neal III <bion@microsoft.com> | 2020-01-14 01:10:11 -0800 |
|---|---|---|
| committer | Billy Robert O'Neal III <bion@microsoft.com> | 2020-01-14 01:11:10 -0800 |
| commit | 6d8abe424a77f736fbed114eeac574b9bfe6b0c1 (patch) | |
| tree | aea5f3ce748b52fea44ba7d37bf9ed7cbec7bed7 /libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/reverse_copy.pass.cpp | |
| parent | d8ffd601d523fa0c0a55e25e62af9ffaa618629d (diff) | |
| download | bcm5719-llvm-6d8abe424a77f736fbed114eeac574b9bfe6b0c1.tar.gz bcm5719-llvm-6d8abe424a77f736fbed114eeac574b9bfe6b0c1.zip | |
[libcxx] [test] Add casts to avoid signed/unsigned mismatch warnings on MSVC++
A bug was filed that these warnings should not be emitted as DevCom-883961. ( https://developercommunity.visualstudio.com/content/problem/883961/c4389-signedunsigned-mismatch-should-not-be-emitte.html )
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/reverse_copy.pass.cpp')
| -rw-r--r-- | libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/reverse_copy.pass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/reverse_copy.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/reverse_copy.pass.cpp index 6967c446b75..be3e6afd047 100644 --- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/reverse_copy.pass.cpp +++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/reverse_copy.pass.cpp @@ -25,7 +25,7 @@ TEST_CONSTEXPR bool test_constexpr() { auto it = std::reverse_copy(std::begin(ia), std::end(ia), std::begin(ib)); - return std::distance(std::begin(ib), it) == std::size(ia) + return std::distance(std::begin(ib), it) == static_cast<int>(std::size(ia)) && std::equal (std::begin(ia), std::end(ia), std::rbegin(ib)) ; } |

