Oops. Fix syntax for C89 compilers.

This commit is contained in:
Guido van Rossum 2006-02-25 23:32:30 +00:00
parent 1968ad32cd
commit 4b92a82504

View file

@ -885,12 +885,12 @@ dict_subscript(dictobject *mp, register PyObject *key)
if (v == NULL) {
if (!PyDict_CheckExact(mp)) {
/* Look up __missing__ method if we're a subclass. */
PyObject *missing;
static PyObject *missing_str = NULL;
if (missing_str == NULL)
missing_str =
PyString_InternFromString("__missing__");
PyObject *missing = _PyType_Lookup(mp->ob_type,
missing_str);
missing = _PyType_Lookup(mp->ob_type, missing_str);
if (missing != NULL)
return PyObject_CallFunctionObjArgs(missing,
(PyObject *)mp, key, NULL);