Fix ValueError: Buffer dtype mismatch on win-amd64

This commit is contained in:
Christoph Gohlke
2013-03-04 17:29:44 -08:00
parent 4854dc830f
commit 19e938a3de
+1 -1
View File
@@ -31,7 +31,7 @@ def possible_hull(cnp.ndarray[dtype=cnp.uint8_t, ndim=2, mode="c"] img):
# rows storage slots for right boundary pixels
# cols storage slots for bottom boundary pixels
cdef cnp.ndarray[dtype=cnp.intp_t, ndim=2] nonzero = \
np.ones((2 * (rows + cols), 2), dtype=np.int)
np.ones((2 * (rows + cols), 2), dtype=np.intp)
nonzero *= -1
for r in range(rows):