diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-09-08 17:05:35 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2015-09-08 17:05:35 -0700 |
commit | 84e0c27b613d5ab70918272027e807e64272d244 (patch) | |
tree | 52e0e3b84317b5f5c99773d114c751503f8cbf15 /unsupported/test/cxx11_tensor_argmax.cpp | |
parent | 05f2f94f2ba444119a5ab8f013bd790fd6adf26e (diff) |
Fixed a compilation warning
Diffstat (limited to 'unsupported/test/cxx11_tensor_argmax.cpp')
-rw-r--r-- | unsupported/test/cxx11_tensor_argmax.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unsupported/test/cxx11_tensor_argmax.cpp b/unsupported/test/cxx11_tensor_argmax.cpp index 26c656e1a..c9052941d 100644 --- a/unsupported/test/cxx11_tensor_argmax.cpp +++ b/unsupported/test/cxx11_tensor_argmax.cpp @@ -244,7 +244,7 @@ static void test_argmin_dim() VERIFY_IS_EQUAL(tensor_argmin.dimensions().TotalSize(), size_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.size(); ++n) { // Expect min to be in the first index of the reduced dimension VERIFY_IS_EQUAL(tensor_argmin.data()[n], 0); } @@ -264,8 +264,8 @@ static void test_argmin_dim() tensor_argmin = tensor.argmin(dim); - VERIFY_IS_EQUAL(tensor_argmin.dimensions().TotalSize(), - size_t(2*3*5*7 / tensor.dimension(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) { // Expect min to be in the last index of the reduced dimension VERIFY_IS_EQUAL(tensor_argmin.data()[n], tensor.dimension(dim) - 1); |