forked from OSchip/llvm-project
[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:
parent
752494bfe3
commit
eb0fa1c054
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue