summaryrefslogtreecommitdiffstats
path: root/Objects/dictobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-02-25 23:32:30 (GMT)
committerGuido van Rossum <guido@python.org>2006-02-25 23:32:30 (GMT)
commit4b92a825046ca5b4a4422e6a22ff9c5819eb4a52 (patch)
tree3c9f72a17d1575a9ba1e5078acc686d76e9672ab /Objects/dictobject.c
parent1968ad32cd7f46d9bb64826672ef68cdaee35288 (diff)
downloadcpython-4b92a825046ca5b4a4422e6a22ff9c5819eb4a52.zip
cpython-4b92a825046ca5b4a4422e6a22ff9c5819eb4a52.tar.gz
cpython-4b92a825046ca5b4a4422e6a22ff9c5819eb4a52.tar.bz2
Oops. Fix syntax for C89 compilers.
Diffstat (limited to 'Objects/dictobject.c')
-rw-r--r--Objects/dictobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index 2254762..0eccdbb 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -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);