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

Reorder asserts for easier debugging. #1094

Merged

Conversation

drewm1980
Copy link
Contributor

When the caller erroneously passes NaN's, it is much easier to diagnose with the asserts in this order. With finite arguments, the error message is unchanged.

When the caller erroneously passes NaN's, it is much easier to diagnose with the asserts in this order. With finite arguments, the error message is unchanged.
Copy link
Member

@dhardy dhardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Can you add a note to the changelog please?

@drewm1980
Copy link
Contributor Author

@dhardy I submitted a PR with the requested addition to the changelog. Cheers!

@dhardy
Copy link
Member

dhardy commented Feb 9, 2021

@drewm1980 no it didn't get merged yet; we'd prefer to have both in the same PR. You should be able to push both here.

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.

None yet

3 participants