Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 39548:67e45704c07e
Fix non-C89-compatible syntax.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Aug 2006 23:09:57 +0000 |
| parents | 8f5b9982beba |
| children | 63237fcefd99 |
line wrap: on
line diff
--- a/Objects/typeobject.c Thu Aug 17 22:40:02 2006 +0000 +++ b/Objects/typeobject.c Thu Aug 17 23:09:57 2006 +0000 @@ -4420,7 +4420,7 @@ static long slot_tp_hash(PyObject *self) { - PyObject *func; + PyObject *func, *res; static PyObject *hash_str; long h; @@ -4438,7 +4438,7 @@ return -1; } - PyObject *res = PyEval_CallObject(func, NULL); + res = PyEval_CallObject(func, NULL); Py_DECREF(func); if (res == NULL) return -1;
