From dc83c64d44ca8296f1757321fad9603bad79a676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sun, 3 Mar 2013 15:37:45 +0100 Subject: [PATCH] Change data type of index variables --- skimage/transform/_hough_transform.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/transform/_hough_transform.pyx b/skimage/transform/_hough_transform.pyx index 29a38eb7..a6ce6c27 100644 --- a/skimage/transform/_hough_transform.pyx +++ b/skimage/transform/_hough_transform.pyx @@ -50,11 +50,11 @@ def _hough_circle(cnp.ndarray img, \ x, y = np.nonzero(img) # Offset the image - cdef int max_radius = radius.max() + cdef Py_ssize_t max_radius = radius.max() x = x + max_radius y = y + max_radius - cdef int px, py + cdef Py_ssize_t px, py cdef cnp.ndarray[ndim=1, dtype=cnp.intp_t] tx, ty, circle_x, circle_y cdef cnp.ndarray acc = np.zeros((radius.size, img.shape[0] + 2 * max_radius,