From 8e599bc098cef7030004489dca2b9dab920f2cc8 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sat, 6 Feb 2016 20:26:59 +0100 Subject: Fix warning in unit test --- test/zerosized.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/zerosized.cpp') diff --git a/test/zerosized.cpp b/test/zerosized.cpp index 85c553453..2404fdc2b 100644 --- a/test/zerosized.cpp +++ b/test/zerosized.cpp @@ -49,8 +49,8 @@ template void zeroSizedMatrix() if(MatrixType::MaxColsAtCompileTime!=0 && MatrixType::MaxRowsAtCompileTime!=0) { - Index rows = MatrixType::RowsAtCompileTime==Dynamic ? internal::random(1,10) : MatrixType::RowsAtCompileTime; - Index cols = MatrixType::ColsAtCompileTime==Dynamic ? internal::random(1,10) : MatrixType::ColsAtCompileTime; + Index rows = MatrixType::RowsAtCompileTime==Dynamic ? internal::random(1,10) : Index(MatrixType::RowsAtCompileTime); + Index cols = MatrixType::ColsAtCompileTime==Dynamic ? internal::random(1,10) : Index(MatrixType::ColsAtCompileTime); MatrixType m(rows,cols); zeroReduction(m.template block<0,MatrixType::ColsAtCompileTime>(0,0,0,cols)); zeroReduction(m.template block(0,0,rows,0)); -- cgit v1.2.3