mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-29 13:32:48 +08:00
use bint
This commit is contained in:
@@ -504,8 +504,8 @@ def bezier_segment(Py_ssize_t y0, Py_ssize_t x0,
|
||||
return np.array(py, dtype=np.intp), np.array(px, dtype=np.intp)
|
||||
|
||||
# Save boolean values
|
||||
test1 = 2 * err > dy
|
||||
test2 = 2 * (err + yy) < -dy
|
||||
cdef bint test1 = 2 * err > dy
|
||||
cdef bint test2 = 2 * (err + yy) < -dy
|
||||
# Move (x0,y0) to the next position
|
||||
if 2 * err < dx or test2:
|
||||
y0 += <Py_ssize_t>(sy)
|
||||
|
||||
Reference in New Issue
Block a user