Skip to content

dot.c early bail fix #3928

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

Closed

Conversation

sergei-lewis
Copy link
Contributor

The dot kernel should return 0 for N=0. An existing early bail checks for N<0 and returns 0 in this case. Adjust this to N<1 to simplify maintenance: with this change we don't have to reason through subsequent code to confirm it handles that corner case correctly, and future platform ports have a slightly more pleasant baseline to begin from.

@martin-frbg
Copy link
Collaborator

ah, sorry, that would be against the main develop branch (not sure if/how I could redirect the merge there ?)

@sergei-lewis
Copy link
Contributor Author

Gotcha, I'll close this and make a new one. One sec

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

Successfully merging this pull request may close these issues.

2 participants