mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-03 12:50:25 +08:00
use bint
This commit is contained in:
1 parent
984311b457
commit
1e862e06bc
1 file changed
+2
-2
@@ -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