Commit a0efb07b authored by Guolin Ke's avatar Guolin Ke
Browse files

clean warning

parent 6d331d96
...@@ -48,7 +48,7 @@ namespace LightGBM { ...@@ -48,7 +48,7 @@ namespace LightGBM {
}\ }\
double threshold = weighted_cdf[cnt_data - 1] * alpha;\ double threshold = weighted_cdf[cnt_data - 1] * alpha;\
size_t pos = std::upper_bound(weighted_cdf.begin(), weighted_cdf.end(), threshold) - weighted_cdf.begin();\ size_t pos = std::upper_bound(weighted_cdf.begin(), weighted_cdf.end(), threshold) - weighted_cdf.begin();\
if (pos == 0 || pos == cnt_data - 1) {\ if (pos == 0 || pos == static_cast<size_t>(cnt_data - 1)) {\
return data_reader(sorted_idx[pos]);\ return data_reader(sorted_idx[pos]);\
}\ }\
CHECK(threshold >= weighted_cdf[pos - 1]);\ CHECK(threshold >= weighted_cdf[pos - 1]);\
......
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