[Python-checkins] gh-99443: `descr_set_trampoline_call` return type should be `int` not `PyObject*` (GH-99444)

miss-islington webhook-mailer at python.org
Wed Nov 16 18:51:04 EST 2022


https://github.com/python/cpython/commit/bbac9a8bcc4d7c0692e8b4f62a955f7ca107b496
commit: bbac9a8bcc4d7c0692e8b4f62a955f7ca107b496
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-11-16T15:50:50-08:00
summary:

gh-99443: `descr_set_trampoline_call` return type should be `int` not `PyObject*` (GH-99444)

(cherry picked from commit bc390dd93574c3c6773958c6a7e68adc83d0bf3f)

Co-authored-by: Hood Chatham <roberthoodchatham at gmail.com>

files:
M Objects/descrobject.c

diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 73ac14d2a84b..6a5c2a4cf999 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -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);
 });
 



More information about the Python-checkins mailing list