From 6c5eb12df8c040bfcbbe5065de88bcc826016c5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20Sch=C3=B6nberger?= Date: Sun, 30 Jun 2013 13:37:13 +0200 Subject: [PATCH] Cast to int for python 3 --- skimage/filter/rank/core16_cy.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skimage/filter/rank/core16_cy.pyx b/skimage/filter/rank/core16_cy.pyx index 5641d2f1..7de39bf8 100644 --- a/skimage/filter/rank/core16_cy.pyx +++ b/skimage/filter/rank/core16_cy.pyx @@ -59,7 +59,7 @@ cdef void _core16(dtype_t kernel(Py_ssize_t*, float, dtype_t, maxbin_list = [0, 0, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536] - midbin_list = [m / 2 for m in maxbin_list] + midbin_list = [int(m / 2) for m in maxbin_list] # set maxbin and midbin cdef Py_ssize_t maxbin = maxbin_list[bitdepth]