@@ -388,8 +388,9 @@ static PyGetSetDef inst_seq_getsetters[] = {
388
388
};
389
389
390
390
static void
391
- inst_seq_dealloc (_PyInstructionSequence * seq )
391
+ inst_seq_dealloc (PyObject * op )
392
392
{
393
+ _PyInstructionSequence * seq = (_PyInstructionSequence * )op ;
393
394
PyObject_GC_UnTrack (seq );
394
395
Py_TRASHCAN_BEGIN (seq , inst_seq_dealloc )
395
396
PyInstructionSequence_Fini (seq );
@@ -398,15 +399,17 @@ inst_seq_dealloc(_PyInstructionSequence *seq)
398
399
}
399
400
400
401
static int
401
- inst_seq_traverse (_PyInstructionSequence * seq , visitproc visit , void * arg )
402
+ inst_seq_traverse (PyObject * op , visitproc visit , void * arg )
402
403
{
404
+ _PyInstructionSequence * seq = (_PyInstructionSequence * )op ;
403
405
Py_VISIT (seq -> s_nested );
404
406
return 0 ;
405
407
}
406
408
407
409
static int
408
- inst_seq_clear (_PyInstructionSequence * seq )
410
+ inst_seq_clear (PyObject * op )
409
411
{
412
+ _PyInstructionSequence * seq = (_PyInstructionSequence * )op ;
410
413
Py_CLEAR (seq -> s_nested );
411
414
return 0 ;
412
415
}
@@ -416,7 +419,7 @@ PyTypeObject _PyInstructionSequence_Type = {
416
419
"InstructionSequence" ,
417
420
sizeof (_PyInstructionSequence ),
418
421
0 ,
419
- ( destructor ) inst_seq_dealloc , /*tp_dealloc*/
422
+ inst_seq_dealloc , /*tp_dealloc*/
420
423
0 , /*tp_vectorcall_offset*/
421
424
0 , /*tp_getattr*/
422
425
0 , /*tp_setattr*/
@@ -433,8 +436,8 @@ PyTypeObject _PyInstructionSequence_Type = {
433
436
0 , /* tp_as_buffer */
434
437
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC ,/* tp_flags */
435
438
inst_seq_new__doc__ , /* tp_doc */
436
- ( traverseproc ) inst_seq_traverse , /* tp_traverse */
437
- ( inquiry ) inst_seq_clear , /* tp_clear */
439
+ inst_seq_traverse , /* tp_traverse */
440
+ inst_seq_clear , /* tp_clear */
438
441
0 , /* tp_richcompare */
439
442
0 , /* tp_weaklistoffset */
440
443
0 , /* tp_iter */
0 commit comments