[libcxx] [test] Fix MSVC x64 truncation warning.
authorStephan T. Lavavej <stl@exchange.microsoft.com>
Sat, 5 May 2018 01:40:24 +0000 (01:40 +0000)
committerStephan T. Lavavej <stl@exchange.microsoft.com>
Sat, 5 May 2018 01:40:24 +0000 (01:40 +0000)
warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data

Requesting post-commit review.

llvm-svn: 331575

libcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/streambuf.pass.cpp

index ccd043c..5afc56d 100644 (file)
@@ -50,7 +50,7 @@ protected:
                 str_.resize(str_.capacity());
                 base::setp(const_cast<CharT*>(str_.data()),
                            const_cast<CharT*>(str_.data() + str_.size()));
-                base::pbump(n+1);
+                base::pbump(static_cast<int>(n+1));
             }
             return ch;
         }