[libcxx] [test] D27268: Fix MSVC x64 warning C4267 "conversion from 'size_t' to ...
authorStephan T. Lavavej <stl@exchange.microsoft.com>
Tue, 6 Dec 2016 01:14:43 +0000 (01:14 +0000)
committerStephan T. Lavavej <stl@exchange.microsoft.com>
Tue, 6 Dec 2016 01:14:43 +0000 (01:14 +0000)
commitf41847c401789d8f4a6fce0827579c7e3cfc47d6
treeb2d14321309b409cb09e5806ec813ca195cb4689
parentbaa547b99670a3652b8a1b0b47e853d58ee18093
[libcxx] [test] D27268: Fix MSVC x64 warning C4267 "conversion from 'size_t' to 'int' [or 'unsigned int'], possible loss of data", part 2/4.

Use static_cast<int> when storing size_t in int (or passing size_t to int).

Also, remove a spurious semicolon in test/support/archetypes.hpp.

test/support/count_new.hpp
Additionally, change data members (and parameters) to size_t.

llvm-svn: 288752
libcxx/test/std/utilities/optional/optional.specalg/make_optional_explicit_initializer_list.pass.cpp
libcxx/test/support/archetypes.hpp
libcxx/test/support/count_new.hpp