[libcxx] [test] Use the correct type from strlen. Include correct header.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@329665 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Billy Robert O'Neal III
2018-04-10 03:04:07 +00:00
parent fcb84f3c11
commit 28989705f7
4 changed files with 10 additions and 7 deletions

View File

@@ -45,7 +45,7 @@ protected:
{
if (ch != base::traits_type::eof())
{
int n = str_.size();
std::size_t n = str_.size();
str_.push_back(static_cast<CharT>(ch));
str_.resize(str_.capacity());
base::setp(const_cast<CharT*>(str_.data()),