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

BUG: Fix integer overflow in in1d for mixed integer dtypes #22877 #22884

Merged
merged 1 commit into from Dec 25, 2022

Conversation

charris
Copy link
Member

@charris charris commented Dec 25, 2022

Backport of #22878.

  • TST: Mixed integer types for in1d

  • BUG: Fix mixed dtype overflows for in1d (BUG: numpy.isin does not function correctly with two arrays with different integer type #22877)

  • BUG: Type conversion for integer overflow check

  • MAINT: Fix linting issues in in1d

  • MAINT: ar1 overflow check only for non-empty array

  • MAINT: Expand bounds of overflow check

  • TST: Fix integer overflow in mixed boolean test

  • TST: Include test for overflow on mixed dtypes

  • MAINT: Less conservative overflow checks

numpy#22878)

* TST: Mixed integer types for in1d

* BUG: Fix mixed dtype overflows for in1d (numpy#22877)

* BUG: Type conversion for integer overflow check

* MAINT: Fix linting issues in in1d

* MAINT: ar1 overflow check only for non-empty array

* MAINT: Expand bounds of overflow check

* TST: Fix integer overflow in mixed boolean test

* TST: Include test for overflow on mixed dtypes

* MAINT: Less conservative overflow checks
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Dec 25, 2022
@charris charris added this to the 1.24.1 release milestone Dec 25, 2022
@charris charris merged commit 002c60d into numpy:maintenance/1.24.x Dec 25, 2022
@charris charris deleted the backport-22878 branch December 25, 2022 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants