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

Is this a fencepost error? #848

Open
bdezonia opened this issue Feb 24, 2024 · 0 comments
Open

Is this a fencepost error? #848

bdezonia opened this issue Feb 24, 2024 · 0 comments

Comments

@bdezonia
Copy link
Contributor

See this line of code:

if (s.pw[0] < 0.0) {

Should the if test be stated as "<= 0" instead of as "< 0"? The error message implies 0 might be a bad value but our current code is not catching it.

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

1 participant