[libcxx] [test] Fix MSVC x64 truncation warning.

warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data

Requesting post-commit review.

llvm-svn: 331575
This commit is contained in:
Stephan T. Lavavej 2018-05-05 01:40:24 +00:00
parent 752494bfe3
commit eb0fa1c054
1 changed files with 1 additions and 1 deletions

View 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;
}