[libcxx] [test] D27023: 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. test/std/containers/sequences/deque/deque.capacity/access.pass.cpp Use int instead of unsigned to iterate from 0 to 10. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@288747 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -53,7 +53,7 @@ test1()
|
||||
OutIter r = std::move(InIter(ia), InIter(ia+N), OutIter(ib));
|
||||
assert(base(r) == ib+N);
|
||||
for (unsigned i = 0; i < N; ++i)
|
||||
assert(*ib[i] == i);
|
||||
assert(*ib[i] == static_cast<int>(i));
|
||||
}
|
||||
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
|
||||
Reference in New Issue
Block a user