File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ size_t roundpow2(size_t i) {
313313int safe_pybytes_resize (PyObject * * obj , Py_ssize_t size ) {
314314 PyObject * tmp ;
315315
316- if (Py_REFCNT ( obj ) == 1 ) {
316+ if (( * obj )-> ob_refcnt == 1 ) {
317317 return _PyBytes_Resize (obj , size );
318318 }
319319
Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ Changes
5757* We now use GitHub's native ARM Linux runners to build wheels and run tests.
5858 Previously Linux ARM wheels were built inside a QEMU virtualized environment
5959 and we didn't run tests on this platform.
60- * We now use `Py_REFCNT(obj) ` instead of accessing `(*obj)->ob_refcnt ` directly.
61- This fixes a nogil / multi-threaded compile error. (#201)
6260* We now `collections.abs.Buffer ` on Python 3.12+ instead of `typing.ByteString `,
6361 as `typing.ByteString ` was deprecated and later removed. (#238, #262)
6462
You can’t perform that action at this time.
0 commit comments