diff options
author | Eric Fiselier <eric@efcs.ca> | 2016-12-11 05:31:00 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2016-12-11 05:31:00 +0000 |
commit | c71bd55b5dd20dd94c5b87a30adb1da7e81c5114 (patch) | |
tree | 51ebcc46d3d70c5c3d18b752ab7e2910ff481f78 /libcxx/test/std/utilities/function.objects/comparisons | |
parent | 72967a56e17c3ba7f1f689aaf569dd0648a1d3df (diff) | |
download | bcm5719-llvm-c71bd55b5dd20dd94c5b87a30adb1da7e81c5114.tar.gz bcm5719-llvm-c71bd55b5dd20dd94c5b87a30adb1da7e81c5114.zip |
Enable the -Wsign-compare warning to better support MSVC
llvm-svn: 289363
Diffstat (limited to 'libcxx/test/std/utilities/function.objects/comparisons')
-rw-r--r-- | libcxx/test/std/utilities/function.objects/comparisons/pointer_comparison_test_helper.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/test/std/utilities/function.objects/comparisons/pointer_comparison_test_helper.hpp b/libcxx/test/std/utilities/function.objects/comparisons/pointer_comparison_test_helper.hpp index 66d783a6e35..b23d4e8bb47 100644 --- a/libcxx/test/std/utilities/function.objects/comparisons/pointer_comparison_test_helper.hpp +++ b/libcxx/test/std/utilities/function.objects/comparisons/pointer_comparison_test_helper.hpp @@ -19,13 +19,13 @@ void do_pointer_comparison_test() { #endif std::vector<std::shared_ptr<T> > pointers; const std::size_t test_size = 100; - for (int i=0; i < test_size; ++i) + for (size_t i=0; i < test_size; ++i) pointers.push_back(std::shared_ptr<T>(new T())); Compare comp; UIntCompare ucomp; VoidCompare vcomp; - for (int i=0; i < test_size; ++i) { - for (int j=0; j < test_size; ++j) { + for (size_t i=0; i < test_size; ++i) { + for (size_t j=0; j < test_size; ++j) { T* lhs = pointers[i].get(); T* rhs = pointers[j].get(); std::uintptr_t lhs_uint = reinterpret_cast<std::uintptr_t>(lhs); |