Skip to content

Commit 32b3269

Browse files
committed
Clang fix
1 parent c505d64 commit 32b3269

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Core/Algorithms/Math/GetMatrixSliceAlgo.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ boost::tuple<MatrixHandle, int> GetMatrixSliceAlgo::runImpl(MatrixHandle matrix,
8181
auto sparse = matrix_cast::as_sparse(matrix);
8282
if (sparse)
8383
return boost::make_tuple(boost::make_shared<SparseRowMatrix>(sparse->col(index)), max);
84-
return nullptr;
84+
return boost::make_tuple(nullptr, 0);
8585
}
8686
}
8787
else
@@ -98,7 +98,7 @@ boost::tuple<MatrixHandle, int> GetMatrixSliceAlgo::runImpl(MatrixHandle matrix,
9898
auto sparse = matrix_cast::as_sparse(matrix);
9999
if (sparse)
100100
return boost::make_tuple(boost::make_shared<SparseRowMatrix>(sparse->row(index)), max);
101-
return nullptr;
101+
return boost::make_tuple(nullptr, 0);
102102
}
103103
}
104104
}

0 commit comments

Comments
 (0)