"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "e048a6b409ff72cd2f563b05689ec082bd2e4635"
Unverified Commit 26671aa3 authored by sisco0's avatar sisco0 Committed by GitHub
Browse files

fix warning (#3678)

Compile warnings have been fixed
parent f9a6b11c
...@@ -340,7 +340,7 @@ class Dataset { ...@@ -340,7 +340,7 @@ class Dataset {
if (has_raw_) { if (has_raw_) {
int feat_ind = numeric_feature_map_[feature_idx]; int feat_ind = numeric_feature_map_[feature_idx];
if (feat_ind >= 0) { 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]);
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment