Page MenuHomePhabricator

[libcxx] [test] Fix MSVC x64 truncation warnings with 32-bit allocator size_type/difference_type.
ClosedPublic

Authored by STL_MSFT on Dec 14 2016, 2:14 PM.

Details

Summary

[libcxx] [test] Fix MSVC x64 truncation warnings with 32-bit allocator size_type/difference_type.

test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_container_alloc.pass.cpp
test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_container_alloc.pass.cpp
Iterate with C::size_type because that's what operator[] takes.

test/std/containers/sequences/vector/contiguous.pass.cpp
test/std/strings/basic.string/string.require/contiguous.pass.cpp
Add static_cast<typename C::difference_type> because that's what the iterator's operator+ takes.

Diff Detail

Event Timeline

STL_MSFT updated this revision to Diff 81470.Dec 14 2016, 2:14 PM
STL_MSFT retitled this revision from to [libcxx] [test] Fix MSVC x64 truncation warnings with 32-bit allocator size_type/difference_type..
STL_MSFT updated this object.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
EricWF accepted this revision.Dec 14 2016, 2:29 PM
EricWF edited edge metadata.
This revision is now accepted and ready to land.Dec 14 2016, 2:29 PM
STL_MSFT closed this revision.Dec 14 2016, 2:58 PM