[libcxx] [test] 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.
Paths
| Differential D27023
[libcxx] [test] Fix MSVC warning C4389 "signed/unsigned mismatch", part 10/12. ClosedPublic Authored by STL_MSFT on Nov 22 2016, 4:54 PM.
Details
Summary [libcxx] [test] 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,
Diff Detail Event TimelineComment Actions LGTM. Feel free to address the inline comments or not.
This revision is now accepted and ready to land.Dec 2 2016, 11:38 PM
Revision Contents
Diff 80347 test/std/algorithms/alg.modifying.operations/alg.move/move.pass.cpp
test/std/algorithms/alg.modifying.operations/alg.move/move_backward.pass.cpp
test/std/algorithms/alg.nonmodifying/alg.foreach/test.pass.cpp
test/std/algorithms/alg.sorting/alg.merge/merge.pass.cpp
test/std/algorithms/alg.sorting/alg.merge/merge_comp.pass.cpp
test/std/containers/sequences/deque/deque.capacity/access.pass.cpp
|
Wouldn't it make more sense to change these loop indexes to be int instead of unsigned?