Skip to content

Commit 2bc01cc

Browse files
authored
gh-111652: Fix --enable-pystats build (GH-111653)
1 parent 5add7a6 commit 2bc01cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Include/internal/pycore_code.h

+2
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ extern int _PyStaticCode_Init(PyCodeObject *co);
271271

272272
#ifdef Py_STATS
273273

274+
#include "pycore_bitutils.h" // _Py_bit_length
275+
274276
#define STAT_INC(opname, name) do { if (_Py_stats) _Py_stats->opcode_stats[opname].specialization.name++; } while (0)
275277
#define STAT_DEC(opname, name) do { if (_Py_stats) _Py_stats->opcode_stats[opname].specialization.name--; } while (0)
276278
#define OPCODE_EXE_INC(opname) do { if (_Py_stats) _Py_stats->opcode_stats[opname].execution_count++; } while (0)

0 commit comments

Comments
 (0)