Skip to content

BUG: core: Handle large negative np.int64 args in binary_repr. #14295

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
Aug 20, 2019

Conversation

WarrenWeckesser
Copy link
Member

To avoid the cast to floating point that can occur when the first
argument to binary_repr is a NumPy integer, the argument is converted
to a Python integer at the beginning of the function.

Closes gh-14289.

To avoid the cast to floating point that can occur when the first
argument to binary_repr is a NumPy integer, the argument is converted
to a Python integer at the beginning of the function.

Closes numpygh-14289.
@eric-wieser eric-wieser merged commit e1c42bb into numpy:master Aug 20, 2019
@eric-wieser
Copy link
Member

Thanks, looks obviously correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

binary_repr throws error for some values of np.int64
2 participants