summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/move.pass.cpp
diff options
context:
space:
mode:
authorStephan T. Lavavej <stl@exchange.microsoft.com>2016-12-06 01:13:29 +0000
committerStephan T. Lavavej <stl@exchange.microsoft.com>2016-12-06 01:13:29 +0000
commite17a155c618765c423cbb66ab010ee616aeb72b3 (patch)
tree0a8675cbd4409a4a85d71e1fb4007a31f5be0194 /libcxx/test/std/algorithms/alg.modifying.operations/alg.move/move.pass.cpp
parent68a694b800a9bb5f5cbbc5d8c956a87273356d20 (diff)
downloadbcm5719-llvm-e17a155c618765c423cbb66ab010ee616aeb72b3.tar.gz
bcm5719-llvm-e17a155c618765c423cbb66ab010ee616aeb72b3.zip
[libcxx] [test] D27023: Fix MSVC warning C4389 "signed/unsigned mismatch", part 10/12.
Add static_cast<int>. In these cases, the values are guaranteed to be small-ish, and they're being compared to int elements. test/std/containers/sequences/deque/deque.capacity/access.pass.cpp Use int instead of unsigned to iterate from 0 to 10. llvm-svn: 288747
Diffstat (limited to 'libcxx/test/std/algorithms/alg.modifying.operations/alg.move/move.pass.cpp')
-rw-r--r--libcxx/test/std/algorithms/alg.modifying.operations/alg.move/move.pass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/move.pass.cpp b/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/move.pass.cpp
index 43234be5d3b..9a954d934c4 100644
--- a/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/move.pass.cpp
+++ b/libcxx/test/std/algorithms/alg.modifying.operations/alg.move/move.pass.cpp
@@ -53,7 +53,7 @@ test1()
OutIter r = std::move(InIter(ia), InIter(ia+N), OutIter(ib));
assert(base(r) == ib+N);
for (unsigned i = 0; i < N; ++i)
- assert(*ib[i] == i);
+ assert(*ib[i] == static_cast<int>(i));
}
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
OpenPOWER on IntegriCloud