Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another eternal loop #46

Closed
jliebrand opened this issue Nov 3, 2018 · 0 comments
Closed

Another eternal loop #46

jliebrand opened this issue Nov 3, 2018 · 0 comments
Milestone

Comments

@jliebrand
Copy link
Contributor

These coordinates:
https://gist.github.com/jliebrand/d27791efbe8f3ac05c802220c3bc6409

cause an eternal loop when you try to union them.

  _prevNotCoincident () {
    // iterating backwards from next to prev
    let next = this
    let prev = this.prev
    while (prev && next.coincidents === prev.coincidents) {
      next = prev
      prev = prev.prev
    }
    return prev
  }

That while loop just spins forever

@mfogel mfogel added this to the v0.9.1 milestone Nov 9, 2018
@mfogel mfogel closed this as completed in b8d903d Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants