10000 BUG: fix race initializing legacy dtype casts by ngoldbaum · Pull Request #28290 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: fix race initializing legacy dtype casts #28290

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 14 commits into from
Feb 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

< 8000 input type="hidden" name="authenticity_token" value="P5gHN8beniM9lLyFjdLoid2Bq14KqsQDyD5tRIfU4m_TYsWwjyhDANwNwXyAFiicCgK5KUUav2pjF3tEJhBlVg" autocomplete="off" />
Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
BUG: fix logic error in ensure_castingimpl_exists
  • Loading branch information
ngoldbaum committed Feb 6, 2025
commit 83f18730c09cae737664fe86c49ebf38c94f8a91
2 changes: 1 addition & 1 deletion numpy/_core/src/multiarray/convert_datatype.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ ensure_castingimpl_exists(PyArray_DTypeMeta *from, PyArray_DTypeMeta *to)
return_error = 1;
}

if (!return_error) {
if (res == NULL && !return_error) {
res = create_casting_impl(from, to);
if (res == NULL) {
return_error = 1;
Expand Down
0