Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ENH: fix wasm32 runtime type error in numpy._core#27669

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
charris merged 1 commit intonumpy:maintenance/2.1.xfromcharris:backport-27663
Oct 30, 2024

Conversation

charris
Copy link
Member

Backport of#27663.

As perpython spec getters accept two arguments, second being closure context.
Indescriptor.c numpy follows it, while in patched file it did not.

Why is it important? I was compiling for wasm32-wasip1 (I know that it is not supported), and expressionstr(np.dtype("float32")) gives runtime error due to incompatible function pointer type (omitting an argument), because it boils down to calling._legacy getter. After this patch the snippet works. This issue is (probably) not observable in emscripten due toifdef in the place that handles getters in cpython

The error is caused by function pointer type mismatch in call.indirect
@charrischarris added this to the2.1.3 release milestoneOct 30, 2024
@charrischarris merged commit5895c02 intonumpy:maintenance/2.1.xOct 30, 2024
65 checks passed
@charrischarris deleted the backport-27663 branchOctober 30, 2024 04:00
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
None yet
Milestone
2.1.3 release
Development

Successfully merging this pull request may close these issues.

2 participants
@charris@kp2pml30

[8]ページ先頭

©2009-2025 Movatter.jp