Skip to content

Commit 186c7cd

Browse files
moming39StrikerRUSshiyu1994
authored
[c++] fix parallel_tree_learner_split_info (#6738)
Co-authored-by: Nikita Titov <nekit94-08@mail.ru> Co-authored-by: shiyu1994 <shiyu_k1994@qq.com>
1 parent ae76aad commit 186c7cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/treelearner/split_info.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct SplitInfo {
5353
bool default_left = true;
5454
int8_t monotone_type = 0;
5555
inline static int Size(int max_cat_threshold) {
56-
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);
56+
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;
5757
}
5858

5959
inline void CopyTo(char* buffer) const {

0 commit comments

Comments
 (0)