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

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


https://reviews.llvm.org/D27023

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27023.78993.patch
Type: text/x-patch
Size: 5575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161123/2112c4af/attachment.bin>


More information about the cfe-commits mailing list