From: Raymond Hettinger Date: Wed, 7 Feb 2007 23:48:15 +0000 (+0000) Subject: Silence compiler warning X-Git-Tag: v2.5.1c1~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbe92887ced108cb7ffac2fa037e72981920f21f;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;