From 45f53c9e3a7e930bb844b24ee7491e429b4ea39c Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Wed, 6 Mar 2013 10:09:59 -0800 Subject: [PATCH] Fix MSVC error C2036: 'void *' : unknown size --- skimage/filter/_ctmf.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skimage/filter/_ctmf.pyx b/skimage/filter/_ctmf.pyx index 302ab4c6..e3e845e4 100644 --- a/skimage/filter/_ctmf.pyx +++ b/skimage/filter/_ctmf.pyx @@ -191,7 +191,7 @@ cdef Histograms *allocate_histograms(Py_ssize_t rows, memset(ptr, 0, memory_size) # align ph.accumulator to 32-byte boundary roundoff = ( ptr + 31) % 32 - ph = (ptr + 31 - roundoff) + ph = ( ptr + 31 - roundoff) if not ptr: return ph ph.memory = ptr @@ -202,7 +202,7 @@ cdef Histograms *allocate_histograms(Py_ssize_t rows, # Align histogram memory to a 32-byte boundary # roundoff = ( ptr + 31) % 32 - ptr += 31 - roundoff + ptr = ( ptr + 31 - roundoff) ph.histogram = ptr # # Fill in the statistical things we keep around