summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-02-07 23:49:03 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-02-07 23:49:03 (GMT)
commitde33c62466c688d0769744a7503d8e969bce5741 (patch)
tree6b71427e481ae6d2ce9e341a1d66303f10e7b644 /Objects
parent4da5bf644ab0aa836d29d076524c49cd9b6f3c03 (diff)
downloadcpython-de33c62466c688d0769744a7503d8e969bce5741.zip
cpython-de33c62466c688d0769744a7503d8e969bce5741.tar.gz
cpython-de33c62466c688d0769744a7503d8e969bce5741.tar.bz2
Silence compiler warning
Diffstat (limited to 'Objects')
-rw-r--r--Objects/abstract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 7462c58..f7a3bfe 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -1157,7 +1157,7 @@ PySequence_Check(PyObject *s)
{
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;