From 98bdd7252e14441dc2d392c5146496c35d5e6062 Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Fri, 4 Oct 2019 10:15:33 -0700 Subject: Fix compilation warnings and errors with clang in TensorBlockV2 code and tests --- unsupported/test/cxx11_tensor_block_eval.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'unsupported/test/cxx11_tensor_block_eval.cpp') diff --git a/unsupported/test/cxx11_tensor_block_eval.cpp b/unsupported/test/cxx11_tensor_block_eval.cpp index ff98e170d..75252362c 100644 --- a/unsupported/test/cxx11_tensor_block_eval.cpp +++ b/unsupported/test/cxx11_tensor_block_eval.cpp @@ -104,13 +104,13 @@ static TensorBlockParams FixedSizeBlock(DSizes dims) { return {offsets, dims, TensorBlockDescriptor(0, dims)}; } -inline Eigen::IndexList> NByOne(int n) { - Eigen::IndexList> ret; +inline Eigen::IndexList> NByOne(Index n) { + Eigen::IndexList> ret; ret.set(0, n); return ret; } -inline Eigen::IndexList, int> OneByM(int m) { - Eigen::IndexList, int> ret; +inline Eigen::IndexList, Index> OneByM(Index m) { + Eigen::IndexList, Index> ret; ret.set(1, m); return ret; } -- cgit v1.2.3