[PATCH] D27014: [libcxx] [test] Fix MSVC warning C4018 "signed/unsigned mismatch", part 2/12.
Stephan T. Lavavej via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 22 16:45:56 PST 2016
STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
[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.
https://reviews.llvm.org/D27014
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27014.78980.patch
Type: text/x-patch
Size: 26978 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161123/3ba8ac8f/attachment-0001.bin>
More information about the cfe-commits
mailing list