[libcxx] [test] D27015: Fix MSVC warning C4018 "signed/unsigned mismatch", part 3/12.
Change unsigned to int in parameters. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@287823 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
void test(unsigned N)
|
||||
void test(int N)
|
||||
{
|
||||
int* ia = new int [N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
void test(unsigned N)
|
||||
void test(int N)
|
||||
{
|
||||
int* ia = new int [N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -29,7 +29,7 @@ struct indirect_less
|
||||
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
|
||||
void test(unsigned N)
|
||||
void test(int N)
|
||||
{
|
||||
int* ia = new int [N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
void test(unsigned N)
|
||||
void test(int N)
|
||||
{
|
||||
int* ia = new int [N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -30,7 +30,7 @@ struct indirect_less
|
||||
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
|
||||
void test(unsigned N)
|
||||
void test(int N)
|
||||
{
|
||||
int* ia = new int [N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
void test(unsigned N)
|
||||
void test(int N)
|
||||
{
|
||||
int* ia = new int [N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -29,7 +29,7 @@ struct indirect_less
|
||||
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
|
||||
void test(unsigned N)
|
||||
void test(int N)
|
||||
{
|
||||
int* ia = new int [N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -35,7 +35,7 @@ test(Iter first, Iter last)
|
||||
|
||||
template <class Iter>
|
||||
void
|
||||
test(unsigned N)
|
||||
test(int N)
|
||||
{
|
||||
int* a = new int[N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -36,7 +36,7 @@ test(Iter first, Iter last)
|
||||
|
||||
template <class Iter>
|
||||
void
|
||||
test(unsigned N)
|
||||
test(int N)
|
||||
{
|
||||
int* a = new int[N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -35,7 +35,7 @@ test(Iter first, Iter last)
|
||||
|
||||
template <class Iter>
|
||||
void
|
||||
test(unsigned N)
|
||||
test(int N)
|
||||
{
|
||||
int* a = new int[N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -36,7 +36,7 @@ test(Iter first, Iter last)
|
||||
|
||||
template <class Iter>
|
||||
void
|
||||
test(unsigned N)
|
||||
test(int N)
|
||||
{
|
||||
int* a = new int[N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -41,7 +41,7 @@ test(Iter first, Iter last)
|
||||
|
||||
template <class Iter>
|
||||
void
|
||||
test(unsigned N)
|
||||
test(int N)
|
||||
{
|
||||
int* a = new int[N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -44,7 +44,7 @@ test(Iter first, Iter last)
|
||||
|
||||
template <class Iter>
|
||||
void
|
||||
test(unsigned N)
|
||||
test(int N)
|
||||
{
|
||||
int* a = new int[N];
|
||||
for (int i = 0; i < N; ++i)
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <cassert>
|
||||
|
||||
void
|
||||
test_one(unsigned N, unsigned M)
|
||||
test_one(int N, int M)
|
||||
{
|
||||
assert(N != 0);
|
||||
assert(M < N);
|
||||
@@ -34,7 +34,7 @@ test_one(unsigned N, unsigned M)
|
||||
}
|
||||
|
||||
void
|
||||
test(unsigned N)
|
||||
test(int N)
|
||||
{
|
||||
test_one(N, 0);
|
||||
test_one(N, 1);
|
||||
|
||||
@@ -33,7 +33,7 @@ struct indirect_less
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
|
||||
void
|
||||
test_one(unsigned N, unsigned M)
|
||||
test_one(int N, int M)
|
||||
{
|
||||
assert(N != 0);
|
||||
assert(M < N);
|
||||
@@ -48,7 +48,7 @@ test_one(unsigned N, unsigned M)
|
||||
}
|
||||
|
||||
void
|
||||
test(unsigned N)
|
||||
test(int N)
|
||||
{
|
||||
test_one(N, 0);
|
||||
test_one(N, 1);
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
template <class Iter>
|
||||
void
|
||||
test_larger_sorts(unsigned N, unsigned M)
|
||||
test_larger_sorts(int N, int M)
|
||||
{
|
||||
int* input = new int[N];
|
||||
int* output = new int[M];
|
||||
@@ -43,7 +43,7 @@ test_larger_sorts(unsigned N, unsigned M)
|
||||
|
||||
template <class Iter>
|
||||
void
|
||||
test_larger_sorts(unsigned N)
|
||||
test_larger_sorts(int N)
|
||||
{
|
||||
test_larger_sorts<Iter>(N, 0);
|
||||
test_larger_sorts<Iter>(N, 1);
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
template <class Iter>
|
||||
void
|
||||
test_larger_sorts(unsigned N, unsigned M)
|
||||
test_larger_sorts(int N, int M)
|
||||
{
|
||||
int* input = new int[N];
|
||||
int* output = new int[M];
|
||||
@@ -47,7 +47,7 @@ test_larger_sorts(unsigned N, unsigned M)
|
||||
|
||||
template <class Iter>
|
||||
void
|
||||
test_larger_sorts(unsigned N)
|
||||
test_larger_sorts(int N)
|
||||
{
|
||||
test_larger_sorts<Iter>(N, 0);
|
||||
test_larger_sorts<Iter>(N, 1);
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <cassert>
|
||||
|
||||
void
|
||||
test_larger_sorts(unsigned N, unsigned M)
|
||||
test_larger_sorts(int N, int M)
|
||||
{
|
||||
assert(N != 0);
|
||||
assert(N >= M);
|
||||
@@ -37,7 +37,7 @@ test_larger_sorts(unsigned N, unsigned M)
|
||||
}
|
||||
|
||||
void
|
||||
test_larger_sorts(unsigned N)
|
||||
test_larger_sorts(int N)
|
||||
{
|
||||
test_larger_sorts(N, 0);
|
||||
test_larger_sorts(N, 1);
|
||||
|
||||
@@ -33,7 +33,7 @@ struct indirect_less
|
||||
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
|
||||
|
||||
void
|
||||
test_larger_sorts(unsigned N, unsigned M)
|
||||
test_larger_sorts(int N, int M)
|
||||
{
|
||||
assert(N != 0);
|
||||
assert(N >= M);
|
||||
@@ -51,7 +51,7 @@ test_larger_sorts(unsigned N, unsigned M)
|
||||
}
|
||||
|
||||
void
|
||||
test_larger_sorts(unsigned N)
|
||||
test_larger_sorts(int N)
|
||||
{
|
||||
test_larger_sorts(N, 0);
|
||||
test_larger_sorts(N, 1);
|
||||
|
||||
@@ -72,7 +72,7 @@ test_sort_()
|
||||
}
|
||||
|
||||
void
|
||||
test_larger_sorts(unsigned N, unsigned M)
|
||||
test_larger_sorts(int N, int M)
|
||||
{
|
||||
assert(N != 0);
|
||||
assert(M != 0);
|
||||
@@ -112,7 +112,7 @@ test_larger_sorts(unsigned N, unsigned M)
|
||||
}
|
||||
|
||||
void
|
||||
test_larger_sorts(unsigned N)
|
||||
test_larger_sorts(int N)
|
||||
{
|
||||
test_larger_sorts(N, 1);
|
||||
test_larger_sorts(N, 2);
|
||||
|
||||
@@ -72,7 +72,7 @@ test_sort_()
|
||||
}
|
||||
|
||||
void
|
||||
test_larger_sorts(unsigned N, unsigned M)
|
||||
test_larger_sorts(int N, int M)
|
||||
{
|
||||
assert(N != 0);
|
||||
assert(M != 0);
|
||||
@@ -112,7 +112,7 @@ test_larger_sorts(unsigned N, unsigned M)
|
||||
}
|
||||
|
||||
void
|
||||
test_larger_sorts(unsigned N)
|
||||
test_larger_sorts(int N)
|
||||
{
|
||||
test_larger_sorts(N, 1);
|
||||
test_larger_sorts(N, 2);
|
||||
|
||||
Reference in New Issue
Block a user