Skip to content

Commit 23e8622

Browse files
Merge pull request #2046 from clin1234/patch-1
Fix build errors in 3.14
2 parents 56d91ac + e279888 commit 23e8622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pya/pya/pyaCallables.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pya_object_deallocate (PyObject *self)
4949
// may trigger a GC (https://github.com/KLayout/klayout/issues/1054).
5050
// According to the comments this may be turned into a release mode assertion, so
5151
// we better work around it.
52-
++self->ob_refcnt;
52+
Py_IncRef(self);
5353

5454
// Mute Python warnings in debug case
5555
PyObject_GC_UnTrack (self);

0 commit comments

Comments
 (0)