Fix ArcPoints never finishing
authorunc0rr
Fri, 19 Oct 2018 00:09:45 +0200
changeset 13952 85645992bc8a
parent 13951 54e2a3698425
child 13953 c6e1769ac9aa
Fix ArcPoints never finishing
rust/integral-geometry/src/lib.rs
--- a/rust/integral-geometry/src/lib.rs	Fri Oct 19 00:49:09 2018 +0300
+++ b/rust/integral-geometry/src/lib.rs	Fri Oct 19 00:09:45 2018 +0200
@@ -154,6 +154,8 @@
 
             Some(result)
         } else if self.point.x == self.point.y {
+            self.point.x += 1;
+            
             Some(self.point)
         } else {
             None