8000 Backport gh-6346. by charris · Pull Request #6397 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Backport gh-6346. #6397

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

Merged
merged 1 commit into from
Oct 1, 2015
Merged

Conversation

charris
Copy link
Member
@charris charris commented Oct 1, 2015

BUG: Guarantee non-zero is 1 for switch statements

In numpy/core/src/npymath/npy_math.c.src there is a state machine
sequence that assumes signbit returns either a 1 or 0. However, all
the online documentation states that it will return either a 0 or a
nonzero value, which seems to be determined by the OS. These changes
allow the code to work with a zero or a nonzero value.

In numpy/core/src/npymath/npy_math.c.src there is a state machine
sequence that assumes signbit returns either a 1 or 0. However, all
the online documentation states that it will return either a 0 or a
nonzero value, which seems to be determined by the OS. These changes
allow the code to work with a zero or a nonzero value.
@charris charris added the 08 - Backport Used to tag backport PRs label Oct 1, 2015
@charris charris added this to the 1.10.0 release milestone Oct 1, 2015
charris added a commit that referenced this pull request Oct 1, 2015
@charris charris merged commit 9f0ae61 into numpy:maintenance/1.10.x Oct 1, 2015
@charris charris deleted the backport-gh-6346 branch October 1, 2015 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0