mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Fixed some compiler warnings.
This commit is contained in:
parent
4336eda886
commit
79f7ad228b
1 changed files with 2 additions and 2 deletions
|
@ -4334,13 +4334,13 @@ PyString_InternInPlace(PyObject **p)
|
|||
return;
|
||||
}
|
||||
|
||||
if (PyDict_SetItem(interned, s, s) < 0) {
|
||||
if (PyDict_SetItem(interned, (PyObject *)s, (PyObject *)s) < 0) {
|
||||
PyErr_Clear();
|
||||
return;
|
||||
}
|
||||
/* The two references in interned are not counted by refcnt.
|
||||
The string deallocator will take care of this */
|
||||
(*p)->ob_refcnt -= 2;
|
||||
s->ob_refcnt -= 2;
|
||||
PyString_CHECK_INTERNED(s) = SSTATE_INTERNED_MORTAL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue