File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ cdef class BaseTree:
58
58
float64_t weighted_n_node_samples,
59
59
uint8_t missing_go_to_left
60
60
) except - 1 nogil
61
- cdef intp_t _resize(self , intp_t capacity) except - 1 nogil
62
- cdef intp_t _resize_c(self , intp_t capacity = * ) except - 1 nogil
61
+ cdef int _resize(self , intp_t capacity) except - 1 nogil
62
+ cdef int _resize_c(self , intp_t capacity = * ) except - 1 nogil
63
63
64
64
cdef intp_t _update_node(
65
65
self ,
Original file line number Diff line number Diff line change @@ -984,7 +984,7 @@ cdef class BaseTree:
984
984
985
985
Downstream classes must implement methods to actually traverse the tree.
986
986
"""
987
- cdef intp_t _resize(
987
+ cdef int _resize(
988
988
self ,
989
989
intp_t capacity
990
990
) except - 1 nogil:
@@ -999,7 +999,7 @@ cdef class BaseTree:
999
999
with gil:
1000
1000
raise MemoryError ()
1001
1001
1002
- cdef intp_t _resize_c(self , intp_t capacity = INTPTR_MAX) except - 1 nogil:
1002
+ cdef int _resize_c(self , intp_t capacity = INTPTR_MAX) except - 1 nogil:
1003
1003
""" Guts of _resize
1004
1004
1005
1005
Returns -1 in case of failure to allocate memory (and raise MemoryError)
You can’t perform that action at this time.
0 commit comments