diff Objects/stringobject.c @ 33023:4f588f57a93b legacy-trunk

Fixed some compiler warnings.
author Armin Rigo <arigo@tunes.org>
date Sat, 07 Aug 2004 19:27:39 +0000
parents 5218bff56449
children 8607ac2f81c8
line wrap: on
line diff
--- a/Objects/stringobject.c	Sat Aug 07 19:25:33 2004 +0000
+++ b/Objects/stringobject.c	Sat Aug 07 19:27:39 2004 +0000
@@ -4334,13 +4334,13 @@
 		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;
 }