Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rootstate.c: Fix -Wmissing-braces compile warning
In Python 3.12 [1], ob_refcnt became part of an anonymous union along with ob_refcnt_split, which is conditionally compiled in. Instead of adding braces and implicitly assigning the former ob_refcnt to the new field inside the union, just use a designated initializer, just like how cpython itself does it with _PyObject_HEAD_INIT. [1] python/cpython@ea2c001
- Loading branch information