Skip to content

Commit 2b2da79

Browse files
committed
bpo-37337: fixup
1 parent 338f557 commit 2b2da79

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Include/cpython/abstract.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ PyAPI_FUNC(PyObject *) _PyObject_VectorcallMethod(
165165
static inline PyObject *
166166
_PyObject_CallMethodNoArgs(PyObject *self, PyObject *name)
167167
{
168-
PyObject *args[1] = {self};
169-
return _PyObject_VectorcallMethod(name, args,
168+
return _PyObject_VectorcallMethod(name, &self,
170169
1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
171170
}
172171

@@ -201,8 +200,7 @@ _PyObject_VectorcallMethodId(
201200
static inline PyObject *
202201
_PyObject_CallMethodIdNoArgs(PyObject *self, _Py_Identifier *name)
203202
{
204-
PyObject *args[1] = {self};
205-
return _PyObject_VectorcallMethodId(name, args,
203+
return _PyObject_VectorcallMethodId(name, &self,
206204
1 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
207205
}
208206

0 commit comments

Comments
 (0)