[libcxx] [test] Fix MSVC warning C4389 "signed/unsigned mismatch", part 9/12.
Add static_cast<std::size_t> to more comparisons. (Performed manually, unlike part 8/12.)
Also, include <cstddef> when it wasn't already being included.
Paths
| Differential D27022
[libcxx] [test] Fix MSVC warning C4389 "signed/unsigned mismatch", part 9/12. ClosedPublic Authored by STL_MSFT on Nov 22 2016, 4:53 PM.
Details
Summary [libcxx] [test] Fix MSVC warning C4389 "signed/unsigned mismatch", part 9/12. Add static_cast<std::size_t> to more comparisons. (Performed manually, unlike part 8/12.) Also, include <cstddef> when it wasn't already being included.
Diff Detail Event TimelineEricWF edited edge metadata. Comment ActionsLGTM. I may have considered doing the cast to ptrdiff_t for the other operand instead of the size_t cast, but IDK which is better. This revision is now accepted and ready to land.Dec 2 2016, 11:36 PM
Revision Contents
Diff 78992 test/std/algorithms/alg.modifying.operations/alg.random.sample/sample.pass.cpp
test/std/containers/container.adaptors/priority.queue/priqueue.cons/ctor_iter_iter.pass.cpp
test/std/containers/container.adaptors/priority.queue/priqueue.cons/ctor_iter_iter_comp.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.cons/assign_size_value.pass.cpp
test/std/containers/sequences/forwardlist/forwardlist.cons/size.pass.cpp
test/std/containers/sequences/forwardlist/forwardlist.ops/remove_if.pass.cpp
test/std/containers/sequences/list/list.cons/size_type.pass.cpp
test/std/containers/sequences/vector.bool/find.pass.cpp
test/std/language.support/support.initlist/support.initlist.access/access.pass.cpp
test/std/language.support/support.initlist/support.initlist.range/begin_end.pass.cpp
test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_in.pass.cpp
test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/wchar_t_out.pass.cpp
test/std/numerics/numarray/valarray.range/end_const.pass.cpp
test/std/numerics/numarray/valarray.range/end_non_const.pass.cpp
test/std/re/re.results/re.results.acc/begin_end.pass.cpp
test/std/re/re.results/re.results.acc/cbegin_cend.pass.cpp
test/std/strings/basic.string/string.cons/size_char_alloc.pass.cpp
test/std/strings/basic.string/string.iterators/end.pass.cpp
test/std/strings/basic.string/string.iterators/rend.pass.cpp
test/std/strings/string.view/string.view.iterators/end.pass.cpp
test/std/strings/string.view/string.view.iterators/rend.pass.cpp
|