diff options
author | Guido van Rossum <guido@python.org> | 2006-08-17 23:09:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-17 23:09:57 (GMT) |
commit | 4011a249a8a21b5f07e492df1fed4b63e97a98b6 (patch) | |
tree | 84c8b10b0703e2bbf0032a7d57f868ace6a8d4b8 | |
parent | e171965ea1d7eddb8ffffdfd1991d1b8723a803f (diff) | |
download | cpython-4011a249a8a21b5f07e492df1fed4b63e97a98b6.zip cpython-4011a249a8a21b5f07e492df1fed4b63e97a98b6.tar.gz cpython-4011a249a8a21b5f07e492df1fed4b63e97a98b6.tar.bz2 |
Fix non-C89-compatible syntax.
-rw-r--r-- | Objects/typeobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 93a730a..7b15925 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -4420,7 +4420,7 @@ slot_tp_str(PyObject *self) static long slot_tp_hash(PyObject *self) { - PyObject *func; + PyObject *func, *res; static PyObject *hash_str; long h; @@ -4438,7 +4438,7 @@ slot_tp_hash(PyObject *self) return -1; } - PyObject *res = PyEval_CallObject(func, NULL); + res = PyEval_CallObject(func, NULL); Py_DECREF(func); if (res == NULL) return -1; |