Commit 79f7ad22 authored by Armin Rigo's avatar Armin Rigo

Fixed some compiler warnings.

parent 4336eda8
...@@ -4334,13 +4334,13 @@ PyString_InternInPlace(PyObject **p) ...@@ -4334,13 +4334,13 @@ PyString_InternInPlace(PyObject **p)
return; return;
} }
if (PyDict_SetItem(interned, s, s) < 0) { if (PyDict_SetItem(interned, (PyObject *)s, (PyObject *)s) < 0) {
PyErr_Clear(); PyErr_Clear();
return; return;
} }
/* The two references in interned are not counted by refcnt. /* The two references in interned are not counted by refcnt.
The string deallocator will take care of this */ The string deallocator will take care of this */
(*p)->ob_refcnt -= 2; s->ob_refcnt -= 2;
PyString_CHECK_INTERNED(s) = SSTATE_INTERNED_MORTAL; PyString_CHECK_INTERNED(s) = SSTATE_INTERNED_MORTAL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment