@@ -334,8 +334,9 @@ structseq_repr(PyObject *op)
334334
335335
336336static  PyObject  * 
337- structseq_reduce (PyStructSequence *   self , PyObject  * Py_UNUSED (ignored ))
337+ structseq_reduce (PyObject   * op , PyObject  * Py_UNUSED (ignored ))
338338{
339+     PyStructSequence  * self  =  (PyStructSequence * )op ;
339340    PyObject *  tup  =  NULL ;
340341    PyObject *  dict  =  NULL ;
341342    PyObject *  result ;
@@ -379,8 +380,9 @@ structseq_reduce(PyStructSequence* self, PyObject *Py_UNUSED(ignored))
379380
380381
381382static  PyObject  * 
382- structseq_replace (PyStructSequence   * self , PyObject  * args , PyObject  * kwargs )
383+ structseq_replace (PyObject   * op , PyObject  * args , PyObject  * kwargs )
383384{
385+     PyStructSequence  * self  =  (PyStructSequence * )op ;
384386    PyStructSequence  * result  =  NULL ;
385387    Py_ssize_t  n_fields , n_unnamed_fields , i ;
386388
@@ -449,7 +451,7 @@ structseq_replace(PyStructSequence *self, PyObject *args, PyObject *kwargs)
449451}
450452
451453static  PyMethodDef  structseq_methods [] =  {
452-     {"__reduce__" , ( PyCFunction ) structseq_reduce , METH_NOARGS , NULL },
454+     {"__reduce__" , structseq_reduce , METH_NOARGS , NULL },
453455    {"__replace__" , _PyCFunction_CAST (structseq_replace ), METH_VARARGS  | METH_KEYWORDS ,
454456     PyDoc_STR ("__replace__($self, /, **changes)\n--\n\n" 
455457        "Return a copy of the structure with new values for the specified fields." )},
0 commit comments