@@ -278,7 +278,7 @@ def roll_mean(const float64_t[:] values, ndarray[int64_t] start,
278278
279279
280280cdef inline float64_t calc_var(int64_t minp, int ddof, float64_t nobs,
281- float64_t ssqdm_x, Py_ssize_t num_consecutive_same_value) nogil:
281+ float64_t ssqdm_x, int64_t num_consecutive_same_value) nogil:
282282 cdef:
283283 float64_t result
284284
@@ -298,7 +298,7 @@ cdef inline float64_t calc_var(int64_t minp, int ddof, float64_t nobs,
298298
299299cdef inline void add_var(float64_t val, float64_t * nobs, float64_t * mean_x,
300300 float64_t * ssqdm_x, float64_t * compensation,
301- Py_ssize_t * num_consecutive_same_value, float64_t * prev_value) nogil:
301+ int64_t * num_consecutive_same_value, float64_t * prev_value) nogil:
302302 """ add a value from the var calc """
303303 cdef:
304304 float64_t delta, prev_mean, y, t
@@ -363,8 +363,8 @@ def roll_var(const float64_t[:] values, ndarray[int64_t] start,
363363 cdef:
364364 float64_t mean_x , ssqdm_x , nobs , compensation_add ,
365365 float64_t compensation_remove , prev_value
366- int64_t s , e
367- Py_ssize_t i , j , N = len (start), num_consecutive_same_value
366+ int64_t s , e , num_consecutive_same_value
367+ Py_ssize_t i , j , N = len (start)
368368 ndarray[float64_t] output
369369 bint is_monotonic_increasing_bounds
370370
0 commit comments