mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 18:38:30 +08:00
[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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user