Skip to content

Commit 92d648e

Browse files
committed
fixup comments
1 parent 3124512 commit 92d648e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/cpython/object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ PyAPI_FUNC(int) _Py_ReachedRecursionLimitWithMargin(PyThreadState *tstate, int m
494494
#define Py_TRASHCAN_BEGIN(op, dealloc) \
495495
do { \
496496
PyThreadState *tstate = PyThreadState_Get(); \
497-
/* TODO(picnixz): remove '(destructor)' cast to detect runtime UBs */ \
497+
/* TODO(picnixz): remove cast to detect incorrect macro usages */ \
498498
if (_Py_ReachedRecursionLimitWithMargin(tstate, 2) && Py_TYPE(op)->tp_dealloc == (destructor)dealloc) { \
499499
_PyTrash_thread_deposit_object(tstate, (PyObject *)op); \
500500
break; \

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
_Py_DECREF_STAT_INC(); \
103103
if (--op->ob_refcnt == 0) { \
104104
_PyReftracerTrack(op, PyRefTracer_DESTROY); \
105-
/* TODO(picnixz): remove '(destructor)' cast to detect runtime UBs */ \
105+
/* TODO(picnixz): remove cast to detect incorrect macro usages */ \
106106
destructor d = (destructor)(dealloc); \
107107
d(op); \
108108
} \

0 commit comments

Comments
 (0)