Skip to content

Commit 05b050b

Browse files
committed
remove (destructor) cast in bltinmodule and longobject
1 parent feebdb3 commit 05b050b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Objects/longobject.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ static inline void
4343
_Py_DECREF_INT(PyLongObject *op)
4444
{
4545
assert(PyLong_CheckExact(op));
46-
_Py_DECREF_SPECIALIZED((PyObject *)op,
47-
(destructor)_PyLong_ExactDealloc);
46+
_Py_DECREF_SPECIALIZED((PyObject *)op, _PyLong_ExactDealloc);
4847
}
4948

5049
static inline int

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2520,7 +2520,7 @@ builtin_sum_impl(PyObject *module, PyObject *iterable, PyObject *start)
25202520
}
25212521
if (PyFloat_CheckExact(item)) {
25222522
f_result += PyFloat_AS_DOUBLE(item);
2523-
_Py_DECREF_SPECIALIZED(item, (destructor)_PyFloat_ExactDealloc);
2523+
_Py_DECREF_SPECIALIZED(item, _PyFloat_ExactDealloc);
25242524
continue;
25252525
}
25262526
if (PyLong_Check(item)) {

0 commit comments

Comments
 (0)