11/* *
2- * Copyright 2017-2023 , XGBoost Contributors
2+ * Copyright 2017-2024 , XGBoost Contributors
33 * \file column_matrix.h
44 * \brief Utility for fast column-wise access
55 * \author Philip Cho
@@ -176,7 +176,7 @@ class ColumnMatrix {
176176 void SetValid (typename LBitField32::index_type i) { missing.Clear (i); }
177177 /* * @brief assign the storage to the view. */
178178 void InitView () {
179- missing = LBitField32{Span{storage.data (), storage.size ()}};
179+ missing = LBitField32{Span{storage.data (), static_cast < size_t >( storage.size () )}};
180180 }
181181
182182 void GrowTo (std::size_t n_elements, bool init) {
@@ -318,8 +318,8 @@ class ColumnMatrix {
318318 common::Span<const BinIdxType> bin_index = {
319319 reinterpret_cast <const BinIdxType*>(&index_[feature_offset * bins_type_size_]),
320320 column_size};
321- return std::move ( DenseColumnIter<BinIdxType, any_missing>{
322- bin_index, static_cast <bst_bin_t >(index_base_[fidx]), missing_.missing , feature_offset}) ;
321+ return DenseColumnIter<BinIdxType, any_missing>{
322+ bin_index, static_cast <bst_bin_t >(index_base_[fidx]), missing_.missing , feature_offset};
323323 }
324324
325325 // all columns are dense column and has no missing value
@@ -332,7 +332,7 @@ class ColumnMatrix {
332332 DispatchBinType (bins_type_size_, [&](auto t) {
333333 using ColumnBinT = decltype (t);
334334 auto column_index = Span<ColumnBinT>{reinterpret_cast <ColumnBinT*>(index_.data ()),
335- index_.size () / sizeof (ColumnBinT)};
335+ static_cast < size_t >( index_.size () / sizeof (ColumnBinT) )};
336336 ParallelFor (n_samples, n_threads, [&](auto rid) {
337337 rid += base_rowid;
338338 const size_t ibegin = rid * n_features;
0 commit comments