From 84e0c27b613d5ab70918272027e807e64272d244 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Tue, 8 Sep 2015 17:05:35 -0700 Subject: Fixed a compilation warning --- unsupported/test/cxx11_tensor_argmax.cpp | 6 +++--- 1 file 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); -- cgit v1.2.3