]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-99443: `descr_set_trampoline_call` return type should be `int` not `PyObject*...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 16 Nov 2022 23:50:50 +0000 (15:50 -0800)
committerGitHub <noreply@github.com>
Wed, 16 Nov 2022 23:50:50 +0000 (15:50 -0800)
(cherry picked from commit bc390dd93574c3c6773958c6a7e68adc83d0bf3f)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Objects/descrobject.c

index 73ac14d2a84b0902028bca26b8a0a688264beb42..6a5c2a4cf9998132aadfc2129c3fef8a23887d59 100644 (file)
@@ -16,7 +16,7 @@ class property "propertyobject *" "&PyProperty_Type"
 // see pycore_object.h
 #if defined(__EMSCRIPTEN__) && defined(PY_CALL_TRAMPOLINE)
 #include <emscripten.h>
-EM_JS(PyObject*, descr_set_trampoline_call, (setter set, PyObject *obj, PyObject *value, void *closure), {
+EM_JS(int, descr_set_trampoline_call, (setter set, PyObject *obj, PyObject *value, void *closure), {
     return wasmTable.get(set)(obj, value, closure);
 });