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

matrix: Fix boolean logic in graphene_matrix_to_2d() #136

Merged
merged 2 commits into from
Mar 3, 2019

Conversation

benjamin-otte
Copy link

This looks like a thinko, where && and || where confused leading to way
too many matrices being accepted as 2D when they shouldn't.

A new test, matrix/is-2d has been added.

Benjamin Otte added 2 commits March 2, 2019 01:26
Looks like a leftover from a previous debugging session that snuck into
git.
As a side effect, this fixes an issue where && and || were confused leading
to way too many matrices being accepted as 2D when they shouldn't.

A new test, matrix/to-2d has been added.
@benjamin-otte
Copy link
Author

Updated the commit after finding graphene_matrix_is_2d() to use the same logic as that function, which was correct.

@ebassi ebassi merged commit fbfe12b into ebassi:master Mar 3, 2019
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