Fix two bad type identifiers that caused crashes on OSX (icglue and Nav).

Silence two innocuous warnings (_File and _collections).
This commit is contained in:
Guido van Rossum 2007-07-25 16:47:51 +00:00
parent 3f6dd68e2a
commit 2f2fffb766
4 changed files with 4 additions and 6 deletions

View file

@ -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);
}