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

Risk of divide by zero #34

Closed
bjornharrtell opened this issue Dec 20, 2020 · 0 comments
Closed

Risk of divide by zero #34

bjornharrtell opened this issue Dec 20, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@bjornharrtell
Copy link

At

flatbush/index.js

Lines 130 to 131 in a71e9a5

const x = Math.floor(hilbertMax * ((minX + maxX) / 2 - this.minX) / width);
const y = Math.floor(hilbertMax * ((minY + maxY) / 2 - this.minY) / height);
width or height could be zero.

@mourner mourner added the bug Something isn't working label Dec 20, 2020
apendleton added a commit to apendleton/static-bushes that referenced this issue Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants