[PATCH] D27022: [libcxx] [test] Fix MSVC warning C4389 "signed/unsigned mismatch", part 9/12.

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 22 16:53:20 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 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.


https://reviews.llvm.org/D27022

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27022.78992.patch
Type: text/x-patch
Size: 23353 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161123/493e9828/attachment-0001.bin>


More information about the cfe-commits mailing list