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

fix warning.

parent 7ae0e234
...@@ -16,7 +16,7 @@ For more details, please refer to [Features](https://github.com/Microsoft/LightG ...@@ -16,7 +16,7 @@ For more details, please refer to [Features](https://github.com/Microsoft/LightG
News News
---- ----
02/20/2017 : Update to LightGBM v2. Add two new features: Gradient-based One-Side Sampling(GOSS) and Exclusive Feature Bundling(EFB). With GOSS and EFB, LightGBM can further speed up the training. Details are avaliable in [Features](https://github.com/Microsoft/LightGBM/wiki/Features). 02/20/2017 : Update to LightGBM v2.
01/08/2017 : Release [**R-package**](./R-package) beta version, welcome to have a try and provide feedback. 01/08/2017 : Release [**R-package**](./R-package) beta version, welcome to have a try and provide feedback.
......
...@@ -150,7 +150,7 @@ public: ...@@ -150,7 +150,7 @@ public:
for (auto val : array) { for (auto val : array) {
out->push_back(val); out->push_back(val);
} }
if (k >= array.size()) { if (static_cast<size_t>(k) >= array.size()) {
return; return;
} }
ArgMaxAtK(out, 0, static_cast<int>(out->size()), k - 1); ArgMaxAtK(out, 0, static_cast<int>(out->size()), k - 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