[Python-checkins] r53663 - python/branches/release25-maint/Objects/abstract.c

raymond.hettinger python-checkins at python.org
Thu Feb 8 00:48:15 CET 2007


Author: raymond.hettinger
Date: Thu Feb  8 00:48:15 2007
New Revision: 53663

Modified:
   python/branches/release25-maint/Objects/abstract.c
Log:
Silence compiler warning

Modified: python/branches/release25-maint/Objects/abstract.c
==============================================================================
--- python/branches/release25-maint/Objects/abstract.c	(original)
+++ python/branches/release25-maint/Objects/abstract.c	Thu Feb  8 00:48:15 2007
@@ -1157,7 +1157,7 @@
 {
 	if (s && PyInstance_Check(s))
 		return PyObject_HasAttrString(s, "__getitem__");
-	if (PyObject_IsInstance(s, &PyDict_Type))
+	if (PyObject_IsInstance(s, (PyObject *)&PyDict_Type))
 		return 0;
 	return s != NULL && s->ob_type->tp_as_sequence &&
 		s->ob_type->tp_as_sequence->sq_item != NULL;


More information about the Python-checkins mailing list