@@ -103,8 +103,8 @@ PyAPI_FUNC(PyObject *) PyObject_VectorcallMethod(
103
103
static inline PyObject *
104
104
PyObject_CallMethodNoArgs (PyObject * self , PyObject * name )
105
105
{
106
- return PyObject_VectorcallMethod ( name , & self ,
107
- 1 | PY_VECTORCALL_ARGUMENTS_OFFSET , NULL );
106
+ size_t nargsf = 1 | PY_VECTORCALL_ARGUMENTS_OFFSET ;
107
+ return PyObject_VectorcallMethod ( name , & self , nargsf , _Py_NULL );
108
108
}
109
109
110
110
static inline PyObject *
@@ -113,8 +113,8 @@ PyObject_CallMethodOneArg(PyObject *self, PyObject *name, PyObject *arg)
113
113
PyObject * args [2 ] = {self , arg };
114
114
115
115
assert (arg != NULL );
116
- return PyObject_VectorcallMethod ( name , args ,
117
- 2 | PY_VECTORCALL_ARGUMENTS_OFFSET , NULL );
116
+ size_t nargsf = 2 | PY_VECTORCALL_ARGUMENTS_OFFSET ;
117
+ return PyObject_VectorcallMethod ( name , args , nargsf , _Py_NULL );
118
118
}
119
119
120
120
PyAPI_FUNC (PyObject * ) _PyObject_CallMethod (PyObject * obj ,
@@ -144,16 +144,16 @@ _PyObject_VectorcallMethodId(
144
144
{
145
145
PyObject * oname = _PyUnicode_FromId (name ); /* borrowed */
146
146
if (!oname ) {
147
- return NULL ;
147
+ return _Py_NULL ;
148
148
}
149
149
return PyObject_VectorcallMethod (oname , args , nargsf , kwnames );
150
150
}
151
151
152
152
static inline PyObject *
153
153
_PyObject_CallMethodIdNoArgs (PyObject * self , _Py_Identifier * name )
154
154
{
155
- return _PyObject_VectorcallMethodId ( name , & self ,
156
- 1 | PY_VECTORCALL_ARGUMENTS_OFFSET , NULL );
155
+ size_t nargsf = 1 | PY_VECTORCALL_ARGUMENTS_OFFSET ;
156
+ return _PyObject_VectorcallMethodId ( name , & self , nargsf , _Py_NULL );
157
157
}
158
158
159
159
static inline PyObject *
@@ -162,8 +162,8 @@ _PyObject_CallMethodIdOneArg(PyObject *self, _Py_Identifier *name, PyObject *arg
162
162
PyObject * args [2 ] = {self , arg };
163
163
164
164
assert (arg != NULL );
165
- return _PyObject_VectorcallMethodId ( name , args ,
166
- 2 | PY_VECTORCALL_ARGUMENTS_OFFSET , NULL );
165
+ size_t nargsf = 2 | PY_VECTORCALL_ARGUMENTS_OFFSET ;
166
+ return _PyObject_VectorcallMethodId ( name , args , nargsf , _Py_NULL );
167
167
}
168
168
169
169
PyAPI_FUNC (int ) _PyObject_HasLen (PyObject * o );
0 commit comments