diff options
author | Raymond Hettinger <python@rcn.com> | 2007-02-07 23:48:15 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2007-02-07 23:48:15 +0000 |
commit | bbe92887ced108cb7ffac2fa037e72981920f21f (patch) | |
tree | e1aacdf926cf51cfa55336a2e4e9922c808fdc72 | |
parent | 127ef44c7b56b726abcdddda28c88996b66076c0 (diff) | |
download | cpython-git-bbe92887ced108cb7ffac2fa037e72981920f21f.tar.gz |
Silence compiler warning
-rw-r--r-- | Objects/abstract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index 7462c58dec..f7a3bfefb6 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; |