From: Guido van Rossum Date: Thu, 17 Aug 2006 23:09:57 +0000 (+0000) Subject: Fix non-C89-compatible syntax. X-Git-Tag: v3.0a1~1394 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4011a249a8a21b5f07e492df1fed4b63e97a98b6;p=python Fix non-C89-compatible syntax. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 93a730a27c..7b15925ebb 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;