Oops. Fix syntax for C89 compilers.
This commit is contained in:
parent
1968ad32cd
commit
4b92a82504
|
@ -885,12 +885,12 @@ dict_subscript(dictobject *mp, register PyObject *key)
|
||||||
if (v == NULL) {
|
if (v == NULL) {
|
||||||
if (!PyDict_CheckExact(mp)) {
|
if (!PyDict_CheckExact(mp)) {
|
||||||
/* Look up __missing__ method if we're a subclass. */
|
/* Look up __missing__ method if we're a subclass. */
|
||||||
|
PyObject *missing;
|
||||||
static PyObject *missing_str = NULL;
|
static PyObject *missing_str = NULL;
|
||||||
if (missing_str == NULL)
|
if (missing_str == NULL)
|
||||||
missing_str =
|
missing_str =
|
||||||
PyString_InternFromString("__missing__");
|
PyString_InternFromString("__missing__");
|
||||||
PyObject *missing = _PyType_Lookup(mp->ob_type,
|
missing = _PyType_Lookup(mp->ob_type, missing_str);
|
||||||
missing_str);
|
|
||||||
if (missing != NULL)
|
if (missing != NULL)
|
||||||
return PyObject_CallFunctionObjArgs(missing,
|
return PyObject_CallFunctionObjArgs(missing,
|
||||||
(PyObject *)mp, key, NULL);
|
(PyObject *)mp, key, NULL);
|
||||||
|
|
Loading…
Reference in New Issue