Skip to content

Commit

Permalink
MSVC.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 13, 2022
1 parent b5a8575 commit bc40877
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/common/column_matrix.h
Expand Up @@ -152,10 +152,9 @@ class ColumnMatrix {
if (!any_missing_) {
missing_flags_.resize(feature_offsets_[n_features], false);
// row index is compressed, we need to dispatch it.
DispatchBinType(gmat.index.GetBinTypeSize(), [&](auto t) {
DispatchBinType(gmat.index.GetBinTypeSize(), [&, size = batch.Size()](auto t) {
using RowBinIdxT = decltype(t);
SetIndexNoMissing(base_rowid, gmat.index.data<RowBinIdxT>(), batch.Size(), n_features,
n_threads);
SetIndexNoMissing(base_rowid, gmat.index.data<RowBinIdxT>(), size, n_features, n_threads);
});
} else {
missing_flags_.resize(feature_offsets_[n_features], true);
Expand Down

0 comments on commit bc40877

Please sign in to comment.