Skip to content

Commit

Permalink
Fix typo #1148 (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrz authored and guolinke committed Dec 28, 2017
1 parent 4ecd08c commit 12f55f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/treelearner/serial_tree_learner.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ class SerialTreeLearner: public TreeLearner {
bool is_constant_hessian_;
};

inline data_size_t SerialTreeLearner::GetGlobalDataCountInLeaf(int leafIdx) const {
if (leafIdx >= 0) {
return data_partition_->leaf_count(leafIdx);
inline data_size_t SerialTreeLearner::GetGlobalDataCountInLeaf(int leaf_idx) const {
if (leaf_idx >= 0) {
return data_partition_->leaf_count(leaf_idx);
} else {
return 0;
}
Expand Down

0 comments on commit 12f55f7

Please sign in to comment.