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 4336eda commit 79f7ad2Copy full SHA for 79f7ad2
1 file changed
Objects/stringobject.c
@@ -4334,13 +4334,13 @@ PyString_InternInPlace(PyObject **p)
4334
return;
4335
}
4336
4337
- if (PyDict_SetItem(interned, s, s) < 0) {
+ if (PyDict_SetItem(interned, (PyObject *)s, (PyObject *)s) < 0) {
4338
PyErr_Clear();
4339
4340
4341
/* The two references in interned are not counted by refcnt.
4342
The string deallocator will take care of this */
4343
- (*p)->ob_refcnt -= 2;
+ s->ob_refcnt -= 2;
4344
PyString_CHECK_INTERNED(s) = SSTATE_INTERNED_MORTAL;
4345
4346
0 commit comments