diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-09-17 10:18:49 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-09-17 10:18:49 -0700 |
commit | 58a6453d484602ace9c49302fb7370a270f4a051 (patch) | |
tree | 3ceb56ee995c14c4e392e8e8e48800ac158aa6ba /unsupported/test/cxx11_tensor_argmax.cpp | |
parent | 31afdcb4c2954f7b8c01b0f27fb39f607e94feca (diff) |
Fixed compilation warning
Diffstat (limited to 'unsupported/test/cxx11_tensor_argmax.cpp')
-rw-r--r-- | unsupported/test/cxx11_tensor_argmax.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unsupported/test/cxx11_tensor_argmax.cpp b/unsupported/test/cxx11_tensor_argmax.cpp index c9052941d..50904d5bc 100644 --- a/unsupported/test/cxx11_tensor_argmax.cpp +++ b/unsupported/test/cxx11_tensor_argmax.cpp @@ -208,7 +208,7 @@ static void test_argmax_dim() VERIFY_IS_EQUAL(tensor_argmax.size(), ptrdiff_t(2*3*5*7 / tensor.dimension(dim))); - for (size_t n = 0; n < tensor_argmax.dimensions().TotalSize(); ++n) { + for (ptrdiff_t n = 0; n < tensor_argmax.dimensions().TotalSize(); ++n) { // Expect max to be in the last index of the reduced dimension VERIFY_IS_EQUAL(tensor_argmax.data()[n], tensor.dimension(dim) - 1); } @@ -266,7 +266,7 @@ static void test_argmin_dim() VERIFY_IS_EQUAL(tensor_argmin.size(), ptrdiff_t(2*3*5*7 / tensor.dimension(dim))); - for (size_t n = 0; n < tensor_argmin.dimensions().TotalSize(); ++n) { + for (ptrdiff_t n = 0; n < tensor_argmin.dimensions().TotalSize(); ++n) { // Expect min to be in the last index of the reduced dimension VERIFY_IS_EQUAL(tensor_argmin.data()[n], tensor.dimension(dim) - 1); } |