Skip to content

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

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

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

Conversation

@hoodmane

@hoodmane hoodmane commented Apr 2, 2022

Copy link
Copy Markdown
Contributor

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

@tiran tiran left a comment

Copy link
Copy Markdown
Member

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