[libcxx] r287820 - [libcxx] [test] D27013: Fix MSVC warning C4018 "signed/unsigned mismatch", part 1/12.
Stephan T. Lavavej via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 23 14:01:21 PST 2016
Author: stl_msft
Date: Wed Nov 23 16:01:19 2016
New Revision: 287820
URL: http://llvm.org/viewvc/llvm-project?rev=287820&view=rev
Log:
[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.
Modified:
libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search.pass.cpp
libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search_comp.pass.cpp
libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range.pass.cpp
libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range_comp.pass.cpp
libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound.pass.cpp
libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound_comp.pass.cpp
libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound.pass.cpp
libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound_comp.pass.cpp
libcxx/trunk/test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_container_alloc.pass.cpp
libcxx/trunk/test/std/containers/container.adaptors/queue/queue.cons/ctor_container.pass.cpp
libcxx/trunk/test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_container_alloc.pass.cpp
libcxx/trunk/test/std/containers/container.adaptors/stack/stack.cons/ctor_container.pass.cpp
libcxx/trunk/test/std/containers/sequences/deque/deque.capacity/resize_size.pass.cpp
libcxx/trunk/test/std/containers/sequences/deque/deque.capacity/resize_size_value.pass.cpp
libcxx/trunk/test/std/containers/sequences/vector.bool/push_back.pass.cpp
libcxx/trunk/test/std/input.output/string.streams/stringstream.cons/move2.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/value_assign.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/and_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/and_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/divide_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/divide_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/minus_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/minus_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/or_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/or_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/plus_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/plus_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/times_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/times_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/xor_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/xor_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/copy.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/pointer_size.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.members/resize.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.members/swap.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/bit_not.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/negate.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/not.pass.cpp
libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/plus.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.special/swap.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/abs_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/acos_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/asin_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cos_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cosh_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/exp_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log10_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_value.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_value_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sin_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sinh_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sqrt_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tan_valarray.pass.cpp
libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tanh_valarray.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval_param.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval_param.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval_param.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval_param.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval_param.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/eval_param.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval_param.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval.pass.cpp
libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval_param.pass.cpp
Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <algorithm>
#include <vector>
#include <cassert>
+#include <cstddef>
#include "test_iterators.h"
@@ -36,7 +37,7 @@ test()
const unsigned M = 10;
std::vector<int> v(N);
int x = 0;
- for (int i = 0; i < v.size(); ++i)
+ for (std::size_t i = 0; i < v.size(); ++i)
{
v[i] = x;
if (++x == M)
Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search_comp.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search_comp.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search_comp.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/binary.search/binary_search_comp.pass.cpp Wed Nov 23 16:01:19 2016
@@ -19,6 +19,7 @@
#include <vector>
#include <functional>
#include <cassert>
+#include <cstddef>
#include "test_iterators.h"
@@ -37,7 +38,7 @@ test()
const unsigned M = 10;
std::vector<int> v(N);
int x = 0;
- for (int i = 0; i < v.size(); ++i)
+ for (std::size_t i = 0; i < v.size(); ++i)
{
v[i] = x;
if (++x == M)
Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <algorithm>
#include <vector>
#include <cassert>
+#include <cstddef>
#include "test_iterators.h"
@@ -44,7 +45,7 @@ test()
const unsigned M = 10;
std::vector<int> v(N);
int x = 0;
- for (int i = 0; i < v.size(); ++i)
+ for (std::size_t i = 0; i < v.size(); ++i)
{
v[i] = x;
if (++x == M)
Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range_comp.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range_comp.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range_comp.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/equal.range/equal_range_comp.pass.cpp Wed Nov 23 16:01:19 2016
@@ -19,6 +19,7 @@
#include <functional>
#include <vector>
#include <cassert>
+#include <cstddef>
#include "test_iterators.h"
@@ -45,7 +46,7 @@ test()
const unsigned M = 10;
std::vector<int> v(N);
int x = 0;
- for (int i = 0; i < v.size(); ++i)
+ for (std::size_t i = 0; i < v.size(); ++i)
{
v[i] = x;
if (++x == M)
Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <algorithm>
#include <vector>
#include <cassert>
+#include <cstddef>
#include "test_iterators.h"
@@ -39,7 +40,7 @@ test()
const unsigned M = 10;
std::vector<int> v(N);
int x = 0;
- for (int i = 0; i < v.size(); ++i)
+ for (std::size_t i = 0; i < v.size(); ++i)
{
v[i] = x;
if (++x == M)
Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound_comp.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound_comp.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound_comp.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/lower.bound/lower_bound_comp.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <functional>
#include <vector>
#include <cassert>
+#include <cstddef>
#include "test_iterators.h"
@@ -40,7 +41,7 @@ test()
const unsigned M = 10;
std::vector<int> v(N);
int x = 0;
- for (int i = 0; i < v.size(); ++i)
+ for (std::size_t i = 0; i < v.size(); ++i)
{
v[i] = x;
if (++x == M)
Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <algorithm>
#include <vector>
#include <cassert>
+#include <cstddef>
#include "test_iterators.h"
@@ -39,7 +40,7 @@ test()
const unsigned M = 10;
std::vector<int> v(N);
int x = 0;
- for (int i = 0; i < v.size(); ++i)
+ for (std::size_t i = 0; i < v.size(); ++i)
{
v[i] = x;
if (++x == M)
Modified: libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound_comp.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound_comp.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound_comp.pass.cpp (original)
+++ libcxx/trunk/test/std/algorithms/alg.sorting/alg.binary.search/upper.bound/upper_bound_comp.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <functional>
#include <vector>
#include <cassert>
+#include <cstddef>
#include "test_iterators.h"
@@ -40,7 +41,7 @@ test()
const unsigned M = 10;
std::vector<int> v(N);
int x = 0;
- for (int i = 0; i < v.size(); ++i)
+ for (std::size_t i = 0; i < v.size(); ++i)
{
v[i] = x;
if (++x == M)
Modified: libcxx/trunk/test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_container_alloc.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_container_alloc.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_container_alloc.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/container.adaptors/queue/queue.cons.alloc/ctor_container_alloc.pass.cpp Wed Nov 23 16:01:19 2016
@@ -14,6 +14,7 @@
#include <queue>
#include <cassert>
+#include <cstddef>
#include "test_allocator.h"
@@ -49,7 +50,7 @@ int main()
test q(d, test_allocator<int>(4));
assert(q.get_allocator() == test_allocator<int>(4));
assert(q.size() == 5);
- for (int i = 0; i < d.size(); ++i)
+ for (std::size_t i = 0; i < d.size(); ++i)
{
assert(q.front() == d[i]);
q.pop();
Modified: libcxx/trunk/test/std/containers/container.adaptors/queue/queue.cons/ctor_container.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/container.adaptors/queue/queue.cons/ctor_container.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/container.adaptors/queue/queue.cons/ctor_container.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/container.adaptors/queue/queue.cons/ctor_container.pass.cpp Wed Nov 23 16:01:19 2016
@@ -13,6 +13,7 @@
#include <queue>
#include <cassert>
+#include <cstddef>
template <class C>
C
@@ -29,7 +30,7 @@ int main()
std::deque<int> d = make<std::deque<int> >(5);
std::queue<int> q(d);
assert(q.size() == 5);
- for (int i = 0; i < d.size(); ++i)
+ for (std::size_t i = 0; i < d.size(); ++i)
{
assert(q.front() == d[i]);
q.pop();
Modified: libcxx/trunk/test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_container_alloc.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_container_alloc.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_container_alloc.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/container.adaptors/stack/stack.cons.alloc/ctor_container_alloc.pass.cpp Wed Nov 23 16:01:19 2016
@@ -14,6 +14,7 @@
#include <stack>
#include <cassert>
+#include <cstddef>
#include "test_allocator.h"
@@ -49,7 +50,7 @@ int main()
test q(d, test_allocator<int>(4));
assert(q.get_allocator() == test_allocator<int>(4));
assert(q.size() == 5);
- for (int i = 0; i < d.size(); ++i)
+ for (std::size_t i = 0; i < d.size(); ++i)
{
assert(q.top() == d[d.size() - i - 1]);
q.pop();
Modified: libcxx/trunk/test/std/containers/container.adaptors/stack/stack.cons/ctor_container.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/container.adaptors/stack/stack.cons/ctor_container.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/container.adaptors/stack/stack.cons/ctor_container.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/container.adaptors/stack/stack.cons/ctor_container.pass.cpp Wed Nov 23 16:01:19 2016
@@ -13,6 +13,7 @@
#include <stack>
#include <cassert>
+#include <cstddef>
template <class C>
C
@@ -29,7 +30,7 @@ int main()
std::deque<int> d = make<std::deque<int> >(5);
std::stack<int> q(d);
assert(q.size() == 5);
- for (int i = 0; i < d.size(); ++i)
+ for (std::size_t i = 0; i < d.size(); ++i)
{
assert(q.top() == d[d.size() - i - 1]);
q.pop();
Modified: libcxx/trunk/test/std/containers/sequences/deque/deque.capacity/resize_size.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/deque/deque.capacity/resize_size.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/deque/deque.capacity/resize_size.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/deque/deque.capacity/resize_size.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <algorithm>
#include <iterator>
#include <cassert>
+#include <cstddef>
#include "test_macros.h"
#include "min_allocator.h"
@@ -53,7 +54,7 @@ test(C& c1, int size)
CI i = c1.begin();
for (int j = 0; j < std::min(c1_osize, c1.size()); ++j, ++i)
assert(*i == j);
- for (int j = c1_osize; j < c1.size(); ++j, ++i)
+ for (std::size_t j = c1_osize; j < c1.size(); ++j, ++i)
assert(*i == 0);
}
Modified: libcxx/trunk/test/std/containers/sequences/deque/deque.capacity/resize_size_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/deque/deque.capacity/resize_size_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/deque/deque.capacity/resize_size_value.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/deque/deque.capacity/resize_size_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <algorithm>
#include <iterator>
#include <cassert>
+#include <cstddef>
#include "test_macros.h"
#include "min_allocator.h"
@@ -53,7 +54,7 @@ test(C& c1, int size, int x)
CI i = c1.begin();
for (int j = 0; j < std::min(c1_osize, c1.size()); ++j, ++i)
assert(*i == j);
- for (int j = c1_osize; j < c1.size(); ++j, ++i)
+ for (std::size_t j = c1_osize; j < c1.size(); ++j, ++i)
assert(*i == x);
}
Modified: libcxx/trunk/test/std/containers/sequences/vector.bool/push_back.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/vector.bool/push_back.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/vector.bool/push_back.pass.cpp (original)
+++ libcxx/trunk/test/std/containers/sequences/vector.bool/push_back.pass.cpp Wed Nov 23 16:01:19 2016
@@ -14,6 +14,7 @@
#include <vector>
#include <cassert>
+#include <cstddef>
#include "min_allocator.h"
@@ -27,7 +28,7 @@ int main()
{
c.push_back(a[i]);
assert(c.size() == i+1);
- for (int j = 0; j < c.size(); ++j)
+ for (std::size_t j = 0; j < c.size(); ++j)
assert(c[j] == a[j]);
}
}
@@ -40,7 +41,7 @@ int main()
{
c.push_back(a[i]);
assert(c.size() == i+1);
- for (int j = 0; j < c.size(); ++j)
+ for (std::size_t j = 0; j < c.size(); ++j)
assert(c[j] == a[j]);
}
}
Modified: libcxx/trunk/test/std/input.output/string.streams/stringstream.cons/move2.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/input.output/string.streams/stringstream.cons/move2.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/input.output/string.streams/stringstream.cons/move2.pass.cpp (original)
+++ libcxx/trunk/test/std/input.output/string.streams/stringstream.cons/move2.pass.cpp Wed Nov 23 16:01:19 2016
@@ -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);
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v2;
v2 = v;
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v[i]);
}
{
@@ -37,7 +38,7 @@ int main()
std::valarray<T> v2;
v2 = v;
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v[i]);
}
{
@@ -51,7 +52,7 @@ int main()
for (int i = 0; i < N; ++i)
{
assert(v2[i].size() == v[i].size());
- for (int j = 0; j < v[i].size(); ++j)
+ for (std::size_t j = 0; j < v[i].size(); ++j)
assert(v2[i][j] == v[i][j]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/initializer_list_assign.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v2;
v2 = {1, 2, 3, 4, 5};
assert(v2.size() == N);
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a[i]);
}
{
@@ -36,7 +37,7 @@ int main()
std::valarray<T> v2;
v2 = {1, 2.5, 3, 4.25, 5};
assert(v2.size() == N);
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a[i]);
}
{
@@ -49,7 +50,7 @@ int main()
for (int i = 0; i < N; ++i)
{
assert(v2[i].size() == a[i].size());
- for (int j = 0; j < a[i].size(); ++j)
+ for (std::size_t j = 0; j < a[i].size(); ++j)
assert(v2[i][j] == a[i][j]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/move_assign.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
v2 = std::move(v);
assert(v2.size() == N);
assert(v.size() == 0);
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a[i]);
}
{
@@ -40,7 +41,7 @@ int main()
v2 = std::move(v);
assert(v2.size() == N);
assert(v.size() == 0);
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a[i]);
}
{
@@ -55,7 +56,7 @@ int main()
for (int i = 0; i < N; ++i)
{
assert(v2[i].size() == a[i].size());
- for (int j = 0; j < a[i].size(); ++j)
+ for (std::size_t j = 0; j < a[i].size(); ++j)
assert(v2[i][j] == a[i][j]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/value_assign.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/value_assign.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/value_assign.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.assign/value_assign.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -25,7 +26,7 @@ int main()
std::valarray<T> v(a, N);
v = 7;
assert(v.size() == N);
- for (int i = 0; i < v.size(); ++i)
+ for (std::size_t i = 0; i < v.size(); ++i)
assert(v[i] == 7);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/and_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/and_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/and_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/and_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,7 +31,7 @@ int main()
v1 &= v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/and_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/and_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/and_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/and_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -27,7 +28,7 @@ int main()
std::valarray<T> v2(a2, N);
v1 &= 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/divide_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/divide_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/divide_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/divide_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,7 +31,7 @@ int main()
v3 /= v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/divide_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/divide_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/divide_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/divide_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -27,7 +28,7 @@ int main()
std::valarray<T> v2(a2, N);
v2 /= 6;
assert(v1.size() == v2.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/minus_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/minus_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/minus_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/minus_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,7 +31,7 @@ int main()
v3 -= v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/minus_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/minus_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/minus_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/minus_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -27,7 +28,7 @@ int main()
std::valarray<T> v2(a2, N);
v1 -= 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,7 +31,7 @@ int main()
v2 %= v1;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v2[i] == v3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/modulo_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -27,7 +28,7 @@ int main()
std::valarray<T> v2(a2, N);
v1 %= 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/or_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/or_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/or_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/or_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,7 +31,7 @@ int main()
v1 |= v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/or_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/or_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/or_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/or_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -27,7 +28,7 @@ int main()
std::valarray<T> v2(a2, N);
v1 |= 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/plus_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/plus_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/plus_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/plus_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,7 +31,7 @@ int main()
v1 += v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/plus_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/plus_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/plus_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/plus_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -27,7 +28,7 @@ int main()
std::valarray<T> v2(a2, N);
v1 += 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,7 +31,7 @@ int main()
v1 <<= v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_left_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -27,7 +28,7 @@ int main()
std::valarray<T> v2(a2, N);
v1 <<= 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,7 +31,7 @@ int main()
v3 >>= v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/shift_right_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -27,7 +28,7 @@ int main()
std::valarray<T> v2(a2, N);
v2 >>= 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/times_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/times_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/times_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/times_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,7 +31,7 @@ int main()
v1 *= v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/times_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/times_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/times_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/times_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -27,7 +28,7 @@ int main()
std::valarray<T> v2(a2, N);
v1 *= 6;
assert(v1.size() == v2.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/xor_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/xor_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/xor_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/xor_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,7 +31,7 @@ int main()
v1 ^= v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/xor_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/xor_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/xor_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cassign/xor_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -27,7 +28,7 @@ int main()
std::valarray<T> v2(a2, N);
v1 ^= 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/copy.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/copy.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/copy.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/copy.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -25,7 +26,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<T> v2 = v;
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v[i]);
}
{
@@ -35,7 +36,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<T> v2 = v;
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v[i]);
}
{
@@ -48,7 +49,7 @@ int main()
for (int i = 0; i < N; ++i)
{
assert(v2[i].size() == v[i].size());
- for (int j = 0; j < v[i].size(); ++j)
+ for (std::size_t j = 0; j < v[i].size(); ++j)
assert(v2[i][j] == v[i][j]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/move.pass.cpp Wed Nov 23 16:01:19 2016
@@ -16,6 +16,7 @@
#include <valarray>
#include <utility>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v2 = std::move(v);
assert(v2.size() == N);
assert(v.size() == 0);
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a[i]);
}
{
@@ -39,7 +40,7 @@ int main()
std::valarray<T> v2 = std::move(v);
assert(v2.size() == N);
assert(v.size() == 0);
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a[i]);
}
{
@@ -53,7 +54,7 @@ int main()
for (int i = 0; i < N; ++i)
{
assert(v2[i].size() == a[i].size());
- for (int j = 0; j < v2[i].size(); ++j)
+ for (std::size_t j = 0; j < v2[i].size(); ++j)
assert(v2[i][j] == a[i][j]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/pointer_size.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/pointer_size.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/pointer_size.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.cons/pointer_size.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -45,7 +46,7 @@ int main()
for (int i = 0; i < N; ++i)
{
assert(v[i].size() == a[i].size());
- for (int j = 0; j < v[i].size(); ++j)
+ for (std::size_t j = 0; j < v[i].size(); ++j)
assert(v[i][j] == a[i][j]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.members/resize.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.members/resize.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.members/resize.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.members/resize.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -25,17 +26,17 @@ int main()
std::valarray<T> v1(a1, N1);
v1.resize(8);
assert(v1.size() == 8);
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == 0);
v1.resize(0);
assert(v1.size() == 0);
v1.resize(80);
assert(v1.size() == 80);
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == 0);
v1.resize(40);
assert(v1.size() == 40);
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == 0);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.members/swap.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.members/swap.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.members/swap.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.members/swap.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -30,10 +31,10 @@ int main()
std::valarray<T> v2_save = v2;
v1.swap(v2);
assert(v1.size() == v2_save.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2_save[i]);
assert(v2.size() == v1_save.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v1_save[i]);
}
{
@@ -47,10 +48,10 @@ int main()
std::valarray<T> v2_save = v2;
v1.swap(v2);
assert(v1.size() == v2_save.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2_save[i]);
assert(v2.size() == v1_save.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v1_save[i]);
}
{
@@ -64,10 +65,10 @@ int main()
std::valarray<T> v2_save = v2;
v1.swap(v2);
assert(v1.size() == v2_save.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2_save[i]);
assert(v2.size() == v1_save.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v1_save[i]);
}
{
@@ -80,10 +81,10 @@ int main()
std::valarray<T> v2_save = v2;
v1.swap(v2);
assert(v1.size() == v2_save.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2_save[i]);
assert(v2.size() == v1_save.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v1_save[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/bit_not.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/bit_not.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/bit_not.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/bit_not.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -25,7 +26,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<T> v2 = ~v;
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == ~v[i]);
}
{
@@ -38,7 +39,7 @@ int main()
for (int i = 0; i < N; ++i)
{
assert(v2[i].size() == v[i].size());
- for (int j = 0; j < v[i].size(); ++j)
+ for (std::size_t j = 0; j < v[i].size(); ++j)
assert(v2[i][j] == ~v[i][j]);
}
}
@@ -49,7 +50,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<T> v2 = ~(v + v);
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == ~(2*v[i]));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/negate.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/negate.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/negate.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/negate.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -25,7 +26,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<T> v2 = -v;
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == -v[i]);
}
{
@@ -35,7 +36,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<T> v2 = -v;
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == -v[i]);
}
{
@@ -48,7 +49,7 @@ int main()
for (int i = 0; i < N; ++i)
{
assert(v2[i].size() == v[i].size());
- for (int j = 0; j < v[i].size(); ++j)
+ for (std::size_t j = 0; j < v[i].size(); ++j)
assert(v2[i][j] == -v[i][j]);
}
}
@@ -59,7 +60,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<T> v2 = -(v + v);
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == -2*v[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/not.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/not.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/not.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/not.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -25,7 +26,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<bool> v2 = !v;
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == !v[i]);
}
{
@@ -35,7 +36,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<bool> v2 = !(v + v);
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == !(2 * v[i]));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/plus.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/plus.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/plus.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/template.valarray/valarray.unary/plus.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -25,7 +26,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<T> v2 = +v;
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == +v[i]);
}
{
@@ -35,7 +36,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<T> v2 = +v;
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == +v[i]);
}
{
@@ -48,7 +49,7 @@ int main()
for (int i = 0; i < N; ++i)
{
assert(v2[i].size() == v[i].size());
- for (int j = 0; j < v[i].size(); ++j)
+ for (std::size_t j = 0; j < v[i].size(); ++j)
assert(v2[i][j] == +v[i][j]);
}
}
@@ -59,7 +60,7 @@ int main()
std::valarray<T> v(a, N);
std::valarray<T> v2 = +(v + v);
assert(v2.size() == v.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == +2*v[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -29,7 +30,7 @@ int main()
std::valarray<T> v3 = v1 & v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = v1 & 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/and_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = 3 & v1;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -29,7 +30,7 @@ int main()
std::valarray<T> v3 = v1 / v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = v1 / 6;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/divide_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = 3 / v1;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -29,7 +30,7 @@ int main()
std::valarray<T> v3 = v1 - v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = v1 - 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/minus_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = 3 - v1;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -29,7 +30,7 @@ int main()
std::valarray<T> v3 = v1 % v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = v1 % 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/modulo_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = 3 % v1;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -29,7 +30,7 @@ int main()
std::valarray<T> v3 = v1 | v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = v1 | 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/or_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = 3 | v1;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -29,7 +30,7 @@ int main()
std::valarray<T> v3 = v1 + v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = v1 + 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/plus_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = 3 + v1;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -29,7 +30,7 @@ int main()
std::valarray<T> v3 = v1 << v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = v1 << 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_left_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = 3 << v1;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -29,7 +30,7 @@ int main()
std::valarray<T> v3 = v1 >> v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = v1 >> 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/shift_right_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = 40 >> v1;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -29,7 +30,7 @@ int main()
std::valarray<T> v3 = v1 * v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = v1 * 6;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/times_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = 6 * v1;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -29,7 +30,7 @@ int main()
std::valarray<T> v3 = v1 ^ v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = v1 ^ 3;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.binary/xor_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -15,6 +15,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -26,7 +27,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v2 = 3 ^ v1;
assert(v1.size() == v2.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == a2[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -31,7 +32,7 @@ int main()
std::valarray<bool> v3 = v1 && v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<bool> v3 = v1 && 5;
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
{
@@ -39,7 +40,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<bool> v3 = v1 && 0;
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/and_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<bool> v3 = 5 && v2;
assert(v2.size() == v3.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
{
@@ -39,7 +40,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<bool> v3 = 0 && v2;
assert(v2.size() == v3.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -31,7 +32,7 @@ int main()
std::valarray<bool> v3 = v1 == v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<bool> v3 = v1 == 2;
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/equal_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<bool> v3 = 2 == v2;
assert(v2.size() == v3.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -31,7 +32,7 @@ int main()
std::valarray<bool> v3 = v1 >= v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<bool> v3 = v1 >= 2;
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_equal_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<bool> v3 = 2 >= v2;
assert(v2.size() == v3.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -31,7 +32,7 @@ int main()
std::valarray<bool> v3 = v1 > v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<bool> v3 = v1 > 2;
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/greater_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<bool> v3 = 2 > v2;
assert(v2.size() == v3.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -31,7 +32,7 @@ int main()
std::valarray<bool> v3 = v1 <= v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<bool> v3 = v1 <= 2;
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_equal_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<bool> v3 = 2 <= v2;
assert(v2.size() == v3.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -31,7 +32,7 @@ int main()
std::valarray<bool> v3 = v1 < v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<bool> v3 = v1 < 2;
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/less_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<bool> v3 = 2 < v2;
assert(v2.size() == v3.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -31,7 +32,7 @@ int main()
std::valarray<bool> v3 = v1 != v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<bool> v3 = v1 != 2;
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/not_equal_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<bool> v3 = 2 != v2;
assert(v2.size() == v3.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -31,7 +32,7 @@ int main()
std::valarray<bool> v3 = v1 || v2;
assert(v1.size() == v2.size());
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<bool> v3 = v1 || 5;
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
{
@@ -39,7 +40,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<bool> v3 = v1 || 0;
assert(v1.size() == v3.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.comparison/or_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<bool> v3 = 5 || v2;
assert(v2.size() == v3.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
{
@@ -39,7 +40,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<bool> v3 = 0 || v2;
assert(v2.size() == v3.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.special/swap.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.special/swap.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.special/swap.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.special/swap.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -32,10 +33,10 @@ int main()
std::valarray<T> v2_save = v2;
swap(v1, v2);
assert(v1.size() == v2_save.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2_save[i]);
assert(v2.size() == v1_save.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v1_save[i]);
}
{
@@ -49,10 +50,10 @@ int main()
std::valarray<T> v2_save = v2;
swap(v1, v2);
assert(v1.size() == v2_save.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2_save[i]);
assert(v2.size() == v1_save.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v1_save[i]);
}
{
@@ -66,10 +67,10 @@ int main()
std::valarray<T> v2_save = v2;
swap(v1, v2);
assert(v1.size() == v2_save.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2_save[i]);
assert(v2.size() == v1_save.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v1_save[i]);
}
{
@@ -82,10 +83,10 @@ int main()
std::valarray<T> v2_save = v2;
swap(v1, v2);
assert(v1.size() == v2_save.size());
- for (int i = 0; i < v1.size(); ++i)
+ for (std::size_t i = 0; i < v1.size(); ++i)
assert(v1[i] == v2_save[i]);
assert(v2.size() == v1_save.size());
- for (int i = 0; i < v2.size(); ++i)
+ for (std::size_t i = 0; i < v2.size(); ++i)
assert(v2[i] == v1_save[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/abs_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/abs_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/abs_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/abs_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <valarray>
#include <cassert>
+#include <cstddef>
int main()
{
@@ -28,7 +29,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = abs(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(v3[i] == a3[i]);
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/acos_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/acos_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/acos_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/acos_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = acos(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/asin_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/asin_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/asin_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/asin_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = asin(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -47,7 +48,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<T> v3 = atan2(v1, v2);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = atan2(v1, .75);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan2_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = atan2(.75, v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/atan_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = atan(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cos_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cos_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cos_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cos_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = cos(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cosh_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cosh_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cosh_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/cosh_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = cosh(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/exp_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/exp_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/exp_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/exp_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = exp(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log10_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log10_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log10_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log10_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = log10(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/log_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = log(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -47,7 +48,7 @@ int main()
std::valarray<T> v2(a2, N);
std::valarray<T> v3 = pow(v1, v2);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_value.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_value.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_value.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_valarray_value.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = pow(v1, 2.0);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_value_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_value_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_value_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/pow_value_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = pow(2.0, v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sin_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sin_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sin_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sin_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = sin(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sinh_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sinh_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sinh_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sinh_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = sinh(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sqrt_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sqrt_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sqrt_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/sqrt_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = sqrt(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tan_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tan_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tan_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tan_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = tan(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tanh_valarray.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tanh_valarray.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tanh_valarray.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/numarray/valarray.nonmembers/valarray.transcend/tanh_valarray.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <valarray>
#include <cassert>
#include <sstream>
+#include <cstddef>
bool is_about(double x, double y, int p)
{
@@ -45,7 +46,7 @@ int main()
std::valarray<T> v1(a1, N);
std::valarray<T> v3 = tanh(v1);
assert(v3.size() == v1.size());
- for (int i = 0; i < v3.size(); ++i)
+ for (std::size_t i = 0; i < v3.size(); ++i)
assert(is_about(v3[i], a3[i], 10));
}
}
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <numeric>
#include <vector>
#include <cassert>
+#include <cstddef>
template <class T>
inline
@@ -42,7 +43,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -78,7 +79,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval_param.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval_param.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval_param.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bernoulli/eval_param.pass.cpp Wed Nov 23 16:01:19 2016
@@ -17,6 +17,7 @@
#include <numeric>
#include <vector>
#include <cassert>
+#include <cstddef>
template <class T>
inline
@@ -44,7 +45,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -82,7 +83,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval.pass.cpp Wed Nov 23 16:01:19 2016
@@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -49,7 +50,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -89,7 +90,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -129,7 +130,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval_param.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval_param.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval_param.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.chisq/eval_param.pass.cpp Wed Nov 23 16:01:19 2016
@@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -50,7 +51,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -91,7 +92,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -132,7 +133,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval.pass.cpp Wed Nov 23 16:01:19 2016
@@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -45,7 +46,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval_param.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval_param.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval_param.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.norm/rand.dist.norm.normal/eval_param.pass.cpp Wed Nov 23 16:01:19 2016
@@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -46,7 +47,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval.pass.cpp Wed Nov 23 16:01:19 2016
@@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -49,7 +50,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -89,7 +90,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -129,7 +130,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval_param.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval_param.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval_param.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.exp/eval_param.pass.cpp Wed Nov 23 16:01:19 2016
@@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -50,7 +51,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval.pass.cpp Wed Nov 23 16:01:19 2016
@@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -49,7 +50,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -93,7 +94,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -137,7 +138,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval_param.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval_param.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval_param.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.weibull/eval_param.pass.cpp Wed Nov 23 16:01:19 2016
@@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -50,7 +51,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -95,7 +96,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -140,7 +141,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/eval_param.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/eval_param.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/eval_param.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/eval_param.pass.cpp Wed Nov 23 16:01:19 2016
@@ -22,6 +22,7 @@
#include <iterator>
#include <numeric>
#include <cassert>
+#include <cstddef>
template <class T>
inline
@@ -53,7 +54,7 @@ int main()
}
std::vector<double> prob(std::begin(p), std::end(p));
double s = std::accumulate(prob.begin(), prob.end(), 0.0);
- for (int i = 0; i < prob.size(); ++i)
+ for (std::size_t i = 0; i < prob.size(); ++i)
prob[i] /= s;
std::sort(u.begin(), u.end());
for (int i = 0; i < Np; ++i)
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp Wed Nov 23 16:01:19 2016
@@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -49,7 +50,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -90,7 +91,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -131,7 +132,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -172,7 +173,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -213,7 +214,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -254,7 +255,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -295,7 +296,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -336,7 +337,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -377,7 +378,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
@@ -429,7 +430,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval_param.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval_param.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval_param.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/eval_param.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -49,7 +50,7 @@ int main()
double var = 0;
double skew = 0;
double kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
double dbl = (u[i] - mean);
double d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval.pass.cpp Wed Nov 23 16:01:19 2016
@@ -20,6 +20,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -49,7 +50,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
@@ -89,7 +90,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
@@ -129,7 +130,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
@@ -169,7 +170,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
@@ -209,7 +210,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
@@ -249,7 +250,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
@@ -289,7 +290,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
@@ -329,7 +330,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
@@ -369,7 +370,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
@@ -409,7 +410,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
@@ -449,7 +450,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
Modified: libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval_param.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval_param.pass.cpp?rev=287820&r1=287819&r2=287820&view=diff
==============================================================================
--- libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval_param.pass.cpp (original)
+++ libcxx/trunk/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/eval_param.pass.cpp Wed Nov 23 16:01:19 2016
@@ -18,6 +18,7 @@
#include <cassert>
#include <vector>
#include <numeric>
+#include <cstddef>
template <class T>
inline
@@ -49,7 +50,7 @@ int main()
D::result_type var = 0;
D::result_type skew = 0;
D::result_type kurtosis = 0;
- for (int i = 0; i < u.size(); ++i)
+ for (std::size_t i = 0; i < u.size(); ++i)
{
D::result_type dbl = (u[i] - mean);
D::result_type d2 = sqr(dbl);
More information about the cfe-commits
mailing list