"git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "8aa08c4af22705338adba9ffbd61a73b8bc7baad"
Commit 670a1d70 authored by Guolin Ke's avatar Guolin Ke Committed by GitHub
Browse files

warning fixed

parent 3e405f2c
...@@ -34,7 +34,7 @@ bool CheckHasLabelForLibsvm(std::string& str) { ...@@ -34,7 +34,7 @@ bool CheckHasLabelForLibsvm(std::string& str) {
bool CheckHasLabelForTSV(std::string& str, int num_features) { bool CheckHasLabelForTSV(std::string& str, int num_features) {
str = Common::Trim(str); str = Common::Trim(str);
auto tokens = Common::Split(str.c_str(), '\t'); auto tokens = Common::Split(str.c_str(), '\t');
if (tokens.size() == num_features) { if (static_cast<int>(tokens.size()) == num_features) {
return false; return false;
} else { } else {
return true; return true;
...@@ -44,7 +44,7 @@ bool CheckHasLabelForTSV(std::string& str, int num_features) { ...@@ -44,7 +44,7 @@ bool CheckHasLabelForTSV(std::string& str, int num_features) {
bool CheckHasLabelForCSV(std::string& str, int num_features) { bool CheckHasLabelForCSV(std::string& str, int num_features) {
str = Common::Trim(str); str = Common::Trim(str);
auto tokens = Common::Split(str.c_str(), ','); auto tokens = Common::Split(str.c_str(), ',');
if (tokens.size() == num_features) { if (static_cast<int>(tokens.size()) == num_features) {
return false; return false;
} else { } else {
return true; return true;
......
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