commit | de33c62466c688d0769744a7503d8e969bce5741 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Feb 07 23:49:03 2007 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Wed Feb 07 23:49:03 2007 +0000 |
tree | 6b71427e481ae6d2ce9e341a1d66303f10e7b644 | |
parent | 4da5bf644ab0aa836d29d076524c49cd9b6f3c03 [diff] [blame] |
Silence compiler warning
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 @@ { 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;