Skip to content

BUG: Fix cast safety and comparisons for zero sized voids#19351

Merged
charris merged 1 commit intonumpy:maintenance/1.21.xfrom
charris:backport-19322
Jun 25, 2021
Merged

BUG: Fix cast safety and comparisons for zero sized voids#19351
charris merged 1 commit intonumpy:maintenance/1.21.xfrom
charris:backport-19322

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented Jun 25, 2021

Backport of #19322.

These are more complicated and weird things could happen...
right now, the only "weird" thing is that some sized to unsized
voids casts may be considered as safe when they should not be.

I think this is fine... In general, we need to fix all casts
to a strict interpretation of V0, S0, and U0 and then then
allow "V", "S", and "U" explicitly on the python entry-points

Right now, this is as minimal as I could make it work, it isn't
as minimal as I would like after a release, but here we go...

These are more complicated and weird things could happen...
right now, the only "weird" thing is that some sized to unsized
voids casts may be considered as safe when they should not be.

I think this is fine... In general, we need to fix all casts
to a strict interpretation of V0, S0, and U0 and then then
allow "V", "S", and "U" explicitly on the python entry-points

Right now, this is as minimal as I could make it work, it isn't
as minimal as I would _like_ after a release, but here we go...
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jun 25, 2021
@charris charris added this to the 1.21.1 release milestone Jun 25, 2021
@charris charris merged commit 919318c into numpy:maintenance/1.21.x Jun 25, 2021
@charris charris deleted the backport-19322 branch June 25, 2021 23:03
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.

2 participants