Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update Objects/moduleobject.c
  • Loading branch information
encukou authored Sep 15, 2025
commit b1a9b58b2e8a41410de80f0e857c4dcc758793d6
2 changes: 1 addition & 1 deletion Objects/moduleobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ PyModuleDef_Init(PyModuleDef* def)
// - 0b1111 (e.g. from UINT_MAX)
// (The values may change at runtime as the PyModuleDef is used, but
// PyModuleDef_Init is required before using the def as a Python object,
// so this check at least once with the initial values.
// so we check at least once with the initial values.
uint16_t flags = ((PyObject*)def)->ob_flags;
uint16_t bits = _Py_STATICALLY_ALLOCATED_FLAG | _Py_LEGACY_ABI_CHECK_FLAG;
if ((flags & bits) != _Py_STATICALLY_ALLOCATED_FLAG) {
Expand Down
Loading