Merge pull request #2046 from clin1234/patch-1

Fix build errors in 3.14
This commit is contained in:
Matthias Köfferlein 2025-05-11 22:50:07 +02:00 committed by GitHub
commit 23e8622d85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ pya_object_deallocate (PyObject *self)
// may trigger a GC (https://github.com/KLayout/klayout/issues/1054).
// According to the comments this may be turned into a release mode assertion, so
// we better work around it.
++self->ob_refcnt;
Py_IncRef(self);
// Mute Python warnings in debug case
PyObject_GC_UnTrack (self);