Skip to content

bpo-47196: Fix function pointer cast in test_imp#32244

Merged
miss-islington merged 2 commits intopython:mainfrom
hoodmane:imp-test-fpcast
Apr 2, 2022
Merged

bpo-47196: Fix function pointer cast in test_imp#32244
miss-islington merged 2 commits intopython:mainfrom
hoodmane:imp-test-fpcast

Conversation

@hoodmane
Copy link
Copy Markdown
Contributor

@hoodmane hoodmane commented Apr 2, 2022

The function PyInit_imp_dummy is declared as void f(PyObject* spec)
but called as void f(void). On wasm targets without the call
trampolines this causes a fatal error.

https://bugs.python.org/issue47196

Automerge-Triggered-By: GH:tiran

The function PyInit_imp_dummy is declared as void f(PyObject* spec)
but called as void f(void). On wasm targets without the call
trampolines this causes a fatal error.
@tiran tiran added the skip news label Apr 2, 2022
Copy link
Copy Markdown
Member

@tiran tiran left a comment

Choose a reason for hiding this comment

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

Looks correct to me. All other modules have an init function without an argument (grep -R -A1 PyMODINIT_FUNC Modules/).

@miss-islington
Copy link
Copy Markdown
Contributor

@hoodmane: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 7000cd7 into python:main Apr 2, 2022
miss-islington pushed a commit that referenced this pull request Apr 3, 2022
I missed one PyInit function in #32244.

Automerge-Triggered-By: GH:tiran
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants