Skip to content

Commit 0a64683

Browse files
committed
Align debug_cycles with CPython style
1 parent f65a2ff commit 0a64683

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Python/gc.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ debug_cycle(const char *msg, PyObject *op)
10091009
* `seen` list, as finalize_garbage() does. Return the number of seen
10101010
* items.
10111011
*/
1012-
static int
1012+
static Py_ssize_t
10131013
debug_cycles(const char *msg, PyGC_Head *list)
10141014
{
10151015
PyGC_Head seen;
@@ -1630,10 +1630,10 @@ gc_collect_main(PyThreadState *tstate, int generation, _PyGC_Reason reason)
16301630
* debugging information. */
16311631
if (gcstate->debug & _PyGC_DEBUG_UNCOLLECTABLE) {
16321632
stats.uncollectable = debug_cycles("uncollectable", &finalizers);
1633-
} else {
1633+
}
1634+
else {
16341635
stats.uncollectable = gc_list_size(&finalizers);
16351636
}
1636-
16371637
(void)PyTime_PerfCounterRaw(&stats.ts_stop);
16381638
stats.duration = PyTime_AsSecondsDouble(stats.ts_stop - stats.ts_start);
16391639
if (gcstate->debug & _PyGC_DEBUG_STATS) {

0 commit comments

Comments
 (0)