From: Raymond Hettinger Date: Wed, 7 Feb 2007 23:49:03 +0000 (+0000) Subject: Silence compiler warning X-Git-Tag: v2.6a1~2200 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de33c62466c688d0769744a7503d8e969bce5741;p=thirdparty%2FPython%2Fcpython.git Silence compiler warning --- diff --git a/Objects/abstract.c b/Objects/abstract.c index 7462c58deca1..f7a3bfefb6cc 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;