Skip to content

Commit c9d3ab6

Browse files
authored
remove redundant casts
1 parent a8e8501 commit c9d3ab6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_bz2module.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ _bz2_BZ2Compressor_impl(PyTypeObject *type, int compresslevel)
373373
if (catch_bz2_error(bzerror))
374374
goto error;
375375

376-
PyObject_GC_Track((PyObject *)self);
376+
PyObject_GC_Track(self);
377377
return (PyObject *)self;
378378

379379
error:
@@ -684,7 +684,7 @@ _bz2_BZ2Decompressor_impl(PyTypeObject *type)
684684
if (catch_bz2_error(bzerror))
685685
goto error;
686686

687-
PyObject_GC_Track((PyObject *)self);
687+
PyObject_GC_Track(self);
688688
return (PyObject *)self;
689689

690690
error:

0 commit comments

Comments
 (0)