From 2f2fffb76689df57a93366121f30e078738c552b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 25 Jul 2007 16:47:51 +0000 Subject: Fix two bad type identifiers that caused crashes on OSX (icglue and Nav). Silence two innocuous warnings (_File and _collections). --- Modules/_collectionsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/_collectionsmodule.c') diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c index e4542312ea..1ee3612745 100644 --- a/Modules/_collectionsmodule.c +++ b/Modules/_collectionsmodule.c @@ -1103,7 +1103,7 @@ defdict_copy(defdictobject *dd) whose class constructor has the same signature. Subclasses that define a different constructor signature must override copy(). */ - return PyObject_CallFunctionObjArgs(Py_Type(dd), + return PyObject_CallFunctionObjArgs((PyObject *)Py_Type(dd), dd->default_factory, dd, NULL); } -- cgit v1.2.1