Skip to content

Commit

Permalink
fix a warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Dec 29, 2017
1 parent 3b13f95 commit 0af44ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/c_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ int LGBM_DatasetCreateFromCSR(const void* indptr,
auto idx = sample_indices[i];
auto row = get_row_fun(static_cast<int>(idx));
for (std::pair<int, double>& inner_data : row) {
CHECK(static_cast<size_t>(inner_data.first) < num_col);
CHECK(inner_data.first < num_col);
if (std::fabs(inner_data.second) > kZeroThreshold || std::isnan(inner_data.second)) {
sample_values[inner_data.first].emplace_back(inner_data.second);
sample_idx[inner_data.first].emplace_back(static_cast<int>(i));
Expand Down

0 comments on commit 0af44ac

Please sign in to comment.