File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1124,7 +1124,7 @@ jobs:
1124
1124
1125
1125
1126
1126
- name : Install ninja-build tool
1127
- uses : seanmiddleditch/gha-setup-ninja@v5
1127
+ uses : seanmiddleditch/gha-setup-ninja@v6
1128
1128
1129
1129
- name : Run pip installs
1130
1130
run : |
Original file line number Diff line number Diff line change @@ -574,9 +574,9 @@ extern "C" inline int pybind11_clear(PyObject *self) {
574
574
inline void enable_dynamic_attributes (PyHeapTypeObject *heap_type) {
575
575
auto *type = &heap_type->ht_type ;
576
576
type->tp_flags |= Py_TPFLAGS_HAVE_GC;
577
- #if PY_VERSION_HEX < 0x030B0000
578
- type->tp_dictoffset = type->tp_basicsize ; // place dict at the end
579
- type->tp_basicsize += (ssize_t ) sizeof (PyObject *); // and allocate enough space for it
577
+ #if PY_VERSION_HEX < 0x030B0000 || defined(PYPY_VERSION) // For PyPy see PR #5508
578
+ type->tp_dictoffset = type->tp_basicsize ; // place dict at the end
579
+ type->tp_basicsize += (ssize_t ) sizeof (PyObject *); // and allocate enough space for it
580
580
#else
581
581
type->tp_flags |= Py_TPFLAGS_MANAGED_DICT;
582
582
#endif
You can’t perform that action at this time.
0 commit comments