]> granicus.if.org Git - python/commitdiff
Fix non-C89-compatible syntax.
authorGuido van Rossum <guido@python.org>
Thu, 17 Aug 2006 23:09:57 +0000 (23:09 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 17 Aug 2006 23:09:57 +0000 (23:09 +0000)
Objects/typeobject.c

index 93a730a27c978743186469f883bf151f3c74474b..7b15925ebbee27d0fbd514b6fca5f88705c0653c 100644 (file)
@@ -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;