[libcxx] [test] Fix MSVC warning C4018 "signed/unsigned mismatch", part 2/12.
Add static_cast<std::size_t> when comparing int to std::size_t.
Also, include <cstddef> when it wasn't already being included.
Paths
| Differential D27014
[libcxx] [test] Fix MSVC warning C4018 "signed/unsigned mismatch", part 2/12. ClosedPublic Authored by STL_MSFT on Nov 22 2016, 4:45 PM.
Details
Summary [libcxx] [test] Fix MSVC warning C4018 "signed/unsigned mismatch", part 2/12. Add static_cast<std::size_t> when comparing int to std::size_t. Also, include <cstddef> when it wasn't already being included.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Nov 22 2016, 4:56 PM
Revision Contents
Diff 78980 test/std/algorithms/alg.sorting/alg.nth.element/nth_element_comp.pass.cpp
test/std/algorithms/alg.sorting/alg.sort/partial.sort/partial_sort_comp.pass.cpp
test/std/algorithms/alg.sorting/alg.sort/sort/sort_comp.pass.cpp
test/std/algorithms/alg.sorting/alg.sort/stable.sort/stable_sort_comp.pass.cpp
test/std/containers/associative/map/map.access/iterator.pass.cpp
test/std/containers/associative/set/iterator.pass.cpp
test/std/containers/sequences/deque/deque.capacity/resize_size.pass.cpp
test/std/containers/sequences/deque/deque.capacity/resize_size_value.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/erase_iter.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/erase_iter_iter.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/insert_iter_iter.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/insert_rvalue.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/insert_size_value.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/insert_value.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/pop_back.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/pop_front.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/push_front.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/push_front_rvalue.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/push_back.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/push_back_rvalue.pass.cpp
|