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