Skip to content

Commit

Permalink
[c++] fix parallel_tree_learner_split_info (#6738)
Browse files Browse the repository at this point in the history
Co-authored-by: Nikita Titov <[email protected]>
Co-authored-by: shiyu1994 <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2024
1 parent ae76aad commit 186c7cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/treelearner/split_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct SplitInfo {
bool default_left = true;
int8_t monotone_type = 0;
inline static int Size(int max_cat_threshold) {
return 2 * sizeof(int) + sizeof(uint32_t) + sizeof(bool) + sizeof(double) * 7 + sizeof(data_size_t) * 2 + max_cat_threshold * sizeof(uint32_t) + sizeof(int8_t);
return 2 * sizeof(int) + sizeof(uint32_t) + sizeof(bool) + sizeof(double) * 7 + sizeof(data_size_t) * 2 + max_cat_threshold * sizeof(uint32_t) + sizeof(int8_t) + sizeof(int64_t)*2;
}

inline void CopyTo(char* buffer) const {
Expand Down

0 comments on commit 186c7cd

Please sign in to comment.