From: Armin Rigo Date: Sat, 7 Aug 2004 19:27:39 +0000 (+0000) Subject: Fixed some compiler warnings. X-Git-Tag: v2.4a3~349 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79f7ad228b0f7d5c4609e790d9a06345f36a5aaf;p=python Fixed some compiler warnings. --- diff --git a/Objects/stringobject.c b/Objects/stringobject.c index f29929b0ec..e29ed4806f 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -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; }