Skip to content

Commit 38cc8bb

Browse files
author
y-p
committed
CLN: clear up some cython warnings
1 parent d2b4ae0 commit 38cc8bb

File tree

4 files changed

+122
-42
lines changed

4 files changed

+122
-42
lines changed

pandas/algos.pyx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1630,7 +1630,8 @@ def roll_generic(ndarray[float64_t, cast=True] input, int win,
16301630
int minp, object func):
16311631
cdef ndarray[double_t] output, counts, bufarr
16321632
cdef Py_ssize_t i, n
1633-
cdef float64_t *buf, *oldbuf
1633+
cdef float64_t *buf
1634+
cdef float64_t *oldbuf
16341635

16351636
if not input.flags.c_contiguous:
16361637
input = input.copy('C')

pandas/src/generate_code.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ def take_2d_axis0_%(name)s_%(dest)s(ndarray[%(c_type_in)s, ndim=2] values,
9292
9393
IF %(can_copy)s:
9494
cdef:
95-
%(c_type_out)s *v, *o
95+
%(c_type_out)s *v
96+
%(c_type_out)s *o
9697
9798
#GH3130
9899
if (values.strides[1] == out.strides[1] and
@@ -141,7 +142,8 @@ def take_2d_axis1_%(name)s_%(dest)s(ndarray[%(c_type_in)s, ndim=2] values,
141142
142143
IF %(can_copy)s:
143144
cdef:
144-
%(c_type_out)s *v, *o
145+
%(c_type_out)s *v
146+
%(c_type_out)s *o
145147
146148
#GH3130
147149
if (values.strides[0] == out.strides[0] and

0 commit comments

Comments
 (0)