From 58a6453d484602ace9c49302fb7370a270f4a051 Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Thu, 17 Sep 2015 10:18:49 -0700 Subject: Fixed compilation warning --- unsupported/test/cxx11_tensor_argmax.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unsupported/test/cxx11_tensor_argmax.cpp') 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); } -- cgit v1.2.3