diff --git a/src/operator/tensor/elemwise_unary_op.h b/src/operator/tensor/elemwise_unary_op.h index f8e6aec089a4..865da4f1fa1b 100644 --- a/src/operator/tensor/elemwise_unary_op.h +++ b/src/operator/tensor/elemwise_unary_op.h @@ -245,7 +245,8 @@ struct FillRspRowIdx { struct MarkRspRowIdx { // i represents the row index of the matrix data template - MSHADOW_XINLINE static void Map(int i, RType* row_idx, const DType* data, const index_t num_cols) { + MSHADOW_XINLINE static void Map(int i, RType* row_idx, const DType* data, + const index_t num_cols) { index_t j = 0; index_t offset = i * num_cols; for (; j < num_cols; ++j) {