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

Fixed uint32 OverflowError on Windows. #273

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Fixed uint32 OverflowError on Windows. #273

merged 1 commit into from
Oct 10, 2023

Conversation

adamshapiro0
Copy link
Collaborator

Fixes

  • Fixed OverflowError on Windows when trying to convert 0xFFFFFFFF to an integer numpy array

@adamshapiro0 adamshapiro0 requested a review from anathan October 9, 2023 15:09
@adamshapiro0 adamshapiro0 self-assigned this Oct 9, 2023
@adamshapiro0 adamshapiro0 changed the base branch from master to fix-unrecognized October 9, 2023 15:11
Base automatically changed from fix-unrecognized to master October 9, 2023 19:46
Copy link
Member

@anathan anathan left a comment

Choose a reason for hiding this comment

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

Lgtm

`dtype=int` converts to the C `long` data type. On 64b Linux, that defaults to
`int64_t`. On Windows however, even 64b, it is `int32_t`.

Using `dtype=int` on Windows will raise an OverflowError when trying to convert
uint32_t 0xFFFFFFFF values.
@adamshapiro0 adamshapiro0 merged commit 7c592c2 into master Oct 10, 2023
11 checks passed
@adamshapiro0 adamshapiro0 deleted the int-size branch October 10, 2023 13:43
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