FIX Fixes histgradientboosting for cython 3.0 [scipy-dev]
@@ -61,8 +61,9 @@ def set_raw_bitset_from_binned_bitset(BITSET_INNER_DTYPE_C[:] raw_bitset, # OUT
categories is a mapping from binned category value to raw category value.
"""
cdef:
- int binned_cat_value, raw_cat_value
+ int binned_cat_value
+ X_DTYPE_C raw_cat_value
for binned_cat_value, raw_cat_value in enumerate(categories):
if in_bitset_memoryview(binned_bitset, binned_cat_value):
- set_bitset_memoryview(raw_bitset, raw_cat_value)
+ set_bitset_memoryview(raw_bitset, <X_BINNED_DTYPE_C>raw_cat_value)
