commit | 7a477f58867d11c9a85a374c6f237577e43156c2 | [log] [tgz] |
---|---|---|
author | Stephan T. Lavavej <stl@exchange.microsoft.com> | Tue Dec 06 01:14:29 2016 +0000 |
committer | Stephan T. Lavavej <stl@exchange.microsoft.com> | Tue Dec 06 01:14:29 2016 +0000 |
tree | f98c04f4a42d5db4487e012ab16f8f079dd3e5b0 | |
parent | e2dbcaf969250926a15d527bfbee9d69233a9700 [diff] |
[libcxx] [test] D27267: Fix MSVC x64 warning C4267 "conversion from 'size_t' to 'int' [or 'unsigned int'], possible loss of data", part 1/4. Replace "int n = str_.size();" with "int n = static_cast<int>(str_.size());". int is the correct type to use, because we're eventually calling "base::pbump(n+1);" where base is std::basic_streambuf. N4606 27.6.3.3.3 [streambuf.put.area]/4 declares: "void pbump(int n);" git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@288751 91177308-0d34-0410-b5e6-96231b3b80d8