Skip to content

Commit

Permalink
fix warning (#3678)
Browse files Browse the repository at this point in the history
Compile warnings have been fixed
  • Loading branch information
sisco0 authored Jan 3, 2021
1 parent f9a6b11 commit 26671aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/LightGBM/dataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class Dataset {
if (has_raw_) {
int feat_ind = numeric_feature_map_[feature_idx];
if (feat_ind >= 0) {
raw_data_[feat_ind][row_idx] = feature_values[i];
raw_data_[feat_ind][row_idx] = static_cast<float>(feature_values[i]);
}
}
}
Expand Down

0 comments on commit 26671aa

Please sign in to comment.