[libcxx] [test] D27013: Fix MSVC warning C4018 "signed/unsigned mismatch", part 1/12.
Change loop indices from int to std::size_t. Also, include <cstddef> when it wasn't already being included. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@287820 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
|
||||
int main()
|
||||
{
|
||||
@@ -27,7 +28,7 @@ int main()
|
||||
vecis.back().str("hub started at [00 6b 8b 45 69]");
|
||||
vecis.push_back(std::istringstream());
|
||||
vecis.back().str("hub started at [00 6b 8b 45 69]");
|
||||
for (int n = 0; n < vecis.size(); n++)
|
||||
for (std::size_t n = 0; n < vecis.size(); n++)
|
||||
{
|
||||
assert(vecis[n].str().size() == 31);
|
||||
vecis[n].seekg(0, std::ios_base::beg);
|
||||
|
||||
Reference in New Issue
Block a user