Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7907f8c commit c96a61eCopy full SHA for c96a61e
1 file changed
Objects/unicodeobject.c
@@ -15669,13 +15669,13 @@ unicode_release_interned(void)
15669
}
15670
switch (PyUnicode_CHECK_INTERNED(s)) {
15671
case SSTATE_INTERNED_IMMORTAL:
15672
- Py_REFCNT(s) += 1;
+ Py_SET_REFCNT(s, Py_REFCNT(s) + 1);
15673
#ifdef INTERNED_STATS
15674
immortal_size += PyUnicode_GET_LENGTH(s);
15675
#endif
15676
break;
15677
case SSTATE_INTERNED_MORTAL:
15678
- Py_REFCNT(s) += 2;
+ Py_SET_REFCNT(s, Py_REFCNT(s) + 2);
15679
15680
mortal_size += PyUnicode_GET_LENGTH(s);
15681
0 commit comments