[Python-checkins] r53664 - python/trunk/Objects/abstract.c
raymond.hettinger
python-checkins at python.org
Thu Feb 8 00:49:04 CET 2007
Author: raymond.hettinger
Date: Thu Feb 8 00:49:03 2007
New Revision: 53664
Modified:
python/trunk/Objects/abstract.c
Log:
Silence compiler warning
Modified: python/trunk/Objects/abstract.c
==============================================================================
--- python/trunk/Objects/abstract.c (original)
+++ python/trunk/Objects/abstract.c Thu Feb 8 00:49:03 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