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