Kaydet (Commit) 79f7ad22 authored tarafından Armin Rigo's avatar Armin Rigo

Fixed some compiler warnings.

üst 4336eda8
......@@ -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;
}
......
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