]> granicus.if.org Git - python/commitdiff
Fixed some compiler warnings.
authorArmin Rigo <arigo@tunes.org>
Sat, 7 Aug 2004 19:27:39 +0000 (19:27 +0000)
committerArmin Rigo <arigo@tunes.org>
Sat, 7 Aug 2004 19:27:39 +0000 (19:27 +0000)
Objects/stringobject.c

index f29929b0ec5a88536adba15026b1a8c494422e13..e29ed4806fe449bbb500a2ef81110c53670ad1a8 100644 (file)
@@ -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;
 }