[Python-3000-checkins] r51348 - python/branches/p3yk/Objects/typeobject.c
guido.van.rossum
python-3000-checkins at python.org
Fri Aug 18 01:09:58 CEST 2006
Author: guido.van.rossum
Date: Fri Aug 18 01:09:57 2006
New Revision: 51348
Modified:
python/branches/p3yk/Objects/typeobject.c
Log:
Fix non-C89-compatible syntax.
Modified: python/branches/p3yk/Objects/typeobject.c
==============================================================================
--- python/branches/p3yk/Objects/typeobject.c (original)
+++ python/branches/p3yk/Objects/typeobject.c Fri Aug 18 01:09:57 2006
@@ -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;
More information about the Python-3000-checkins
mailing list